ChannelAction¶
Inherits: DiscordRESTAction < Reference < Object
Inherited By: ChannelCategoryCreateAction, ChannelCategoryEditAction, TextChannelAction, VoiceChannelAction
Description¶
Abstract channel action.
Methods¶
return type | signature |
---|---|
ChannelAction | set_name ( String name ) |
ChannelAction | set_position ( int position ) |
ChannelAction | set_permission_overwrites ( Array overwrites ) |
ChannelAction | reason ( String why ) |
Constants¶
-
int MAX_NAME_LENGTH = 100
Maximum channel name length.
Method Descriptions¶
-
ChannelAction set_name ( String name )
Sets the channel name.t
-
ChannelAction set_position ( int position )
Sets the sorting postion of the channel.
-
ChannelAction set_permission_overwrites ( Array overwrites )
Sets the channel's permission overites.
-
ChannelAction reason ( String why )
Sets the reason for executing the action.