Skip to content

/rolebuttons

Tip

This command requires the administrator permission by default. To learn how to change this, please check the faq command.

/rolebuttons create

Create an embed with buttons to let people self-assign or self-remove roles.

Parameters:

Name Type Description Default
roles Transform[str, RoleTransformer]

Roles or role IDs separated by a space

required
title str

A title for the embed this will create. Defaults to None.

None
description str

A description you would like the embed to have. Defaults to every role along with emojis if you provided them.

None
emojis Transform[str, MultiEmojiTransformer]

A series of emojis to assign to the buttons, separated with spaces. Defaults to None.

None
text_or_emojis Choice

Whether you want to have both emojis and roles displayed on the buttons. Defaults to both.

BOTH

/rolebuttons add

Add buttons to an existing rolebutton message.

Parameters:

Name Type Description Default
message Transform[Message, MessageTransformer]

The ID or link to an existing message.

required
roles Transform[str, RoleTransformer]

Roles or role IDs separated by a space

required
emojis Transform[str, MultiEmojiTransformer]

A series of emojis to assign to the buttons, separated with spaces. Defaults to None.

None

/rolebuttons remove

Remove buttons from an existing rolebutton message.

Parameters:

Name Type Description Default
message Transform[Message, MessageTransformer]

The ID or link to an existing message.

required
roles Transform[List[Role], RoleTransformer]

The roles to remove.

required