Skip to content

rolebuttons

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

Parameters:

Name Type Description Default
roles app_commands.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 app_commands.Transform[str, MultiEmojiTransformer]

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

None
text_or_emojis app_commands.Choice

Whether they want to have both emojis and roles displayed on the buttons

None