RoleAction

Inherits: DiscordRESTAction < Reference < Object

Inherited By: RoleCreateAction, RoleEditAction

Methods

return type signature
Guild.Role submit ( ) coroutine
RoleAction set_name ( String name )
RoleAction set_permissions ( int flags )
RoleAction set_color ( Color color )
RoleAction set_hoist ( bool value )
RoleAction set_icon ( Image image )
RoleAction set_unicode_emoji ( String unicode )
RoleAction mentionable ( bool value )
RoleAction reason ( String why )

Method Descriptions

  • Guild.Role submit ( ) coroutine

    Executes the action.


  • RoleAction set_name ( String name )

    Sets the role name.


  • RoleAction set_permissions ( int flags )

    Sets the role's permission flags.


  • RoleAction set_color ( Color color )

    Sets the role color.


  • RoleAction set_hoist ( bool value )

    Whether to display the role seperately in the sidebar.


  • RoleAction set_icon ( Image image )

    Sets the role's icon image. Requires the guild to have ROLE_ICONS feature.


  • RoleAction set_unicode_emoji ( String unicode )

    Sets hte role's unicode emoji. Requires the guild to have ROLE_ICONS feature.


  • RoleAction mentionable ( bool value )

    Whether to allow the role to be mentioned.


  • RoleAction reason ( String why )

    Sets the reason for executing this action.