TextChannelAction¶
Inherits: ChannelAction < DiscordRESTAction < Reference < Object
Inherited By: TextChannelCreateAction, TextChannelEditAction
Description¶
Abstract text channel action.
Methods¶
return type | signature |
---|---|
Guild.GuildTextChannel | submit ( ) coroutine |
TextChannelAction | set_topic ( String topic ) |
TextChannelAction | set_rate_limit ( int limit ) |
TextChannelAction | set_parent ( int id ) |
TextChannelAction | set_auto_archive_duration ( int duration ) |
TextChannelAction | as_news ( bool value ) |
Constants¶
-
int MAX_TOPIC_LENGTH = 1024
Maximum channel topic length.
-
int MAX_RATE_LIMIT = 21600
Maximum rate limit wait time in seconds.
Method Descriptions¶
-
Guild.GuildTextChannel submit ( ) coroutine
Executes the action.
-
TextChannelAction set_topic ( String topic )
Sets the channel topic.
-
TextChannelAction set_rate_limit ( int limit )
Sets the message cooldown time in seconds.
-
TextChannelAction set_parent ( int id )
Sets the parent of the channel.
id
must point to a category channel.
-
TextChannelAction set_auto_archive_duration ( int duration )
Sets the default thread archive duration, applied to newly created thread.
-
TextChannelAction as_news ( bool value )
Whether the channel should be a news channel.