ChannelEditPositionsAction¶
Inherits: DiscordRESTAction < Reference < Object
Description¶
Action to edit channel postions inside a guild.
Methods¶
return type | signature |
---|---|
bool | submit ( ) coroutine |
ChannelEditPositionsAction.ChannelPosition | for_channel ( int id ) |
Method Descriptions¶
-
ChannelEditPositionsAction ChannelEditPositionsAction ( DiscordRESTMediator rest, int guild_id )
Constrcts a new
ChannelEditPostionsAction
instance.
-
bool submit ( ) coroutine
Edits the channels positions.
-
ChannelEditPositionsAction.ChannelPosition for_channel ( int id )
Includes a channel to edit its position.
Sub Classes¶
ChannelPosition¶
Description¶
Represents a channel postion edit.
Methods¶
return type | signature |
---|---|
ChannelEditPositionsAction.ChannelPosition | set_position ( int position ) |
ChannelEditPositionsAction.ChannelPosition | set_parent ( int id, bool sync_permissions=false ) |
ChannelEditPositionsAction.ChannelPosition | remove_parent ( ) |
Dictionary | to_dict ( ) |
Method Descriptions¶
-
ChannelEditPositionsAction.ChannelPosition ChannelPosition ( int id )
Construct a new channel postion.
-
ChannelEditPositionsAction.ChannelPosition set_position ( int position )
Sets the sorting position of the channel.
-
ChannelEditPositionsAction.ChannelPosition set_parent ( int id, bool sync_permissions=false )
Sets the parent channel id for the channel. If
sync_permissions
istrue
, the permission overites will be synchronised with the new parent. Node
-
ChannelEditPositionsAction.ChannelPosition remove_parent ( )
Removes the channel's parent channel.
-
Dictionary to_dict ( )
Converts the position data to a
Dictionary
.