Selfrole Command
This command allows server administrators to create self-assignable role messages within their guild. Users can set up messages with buttons or dropdown menus that members can interact with to assign or remove roles from themselves.
/selfrole button
Section titled “/selfrole button”This command allows users to create or append a role button to an existing message. Members can click the button to assign or remove the specified role.
Use the command followed by the role, channel, message link, and optional parameters.
| Parameter | Type | Description | Required | Choices |
|---|---|---|---|---|
| role | Role | The role to link to the button. | Yes | N/A |
| channel | Channel | The channel the message is in. | Yes | Text Channel, Announcement Channel |
| message_link | String | The message link to add the button to. | Yes | N/A |
| label | String | The label text for the button. | No | N/A |
| emoji | String | The emoji to add to the button. | No | N/A |
| style | String | The style of the button. | No | Primary (Blue), Secondary (Grey), Success (Green), Danger (Red) |
/selfrole button role:@Gamer channel:#roles message_link:https://discord.com/channels/123456789012345678/234567890123456789/345678901234567890 label:Join Gamer emoji:🎮 style:Primary- Adds a primary button to the specified message that assigns the “Gamer” role.
/selfrole dropdown
Section titled “/selfrole dropdown”This command allows users to create or append a role dropdown menu to an existing message. Members can select roles from the dropdown to assign or remove them from themselves.
Use the command followed by the role, channel, message link, and optional parameters.
| Parameter | Type | Description | Required | Choices |
|---|---|---|---|---|
| role | Role | The role to add to the dropdown. | Yes | N/A |
| channel | Channel | The channel to send the dropdown to. | Yes | Text Channel, Announcement Channel |
| message_link | String | The message link to add the menu to. | Yes | N/A |
| placeholder | String | The placeholder text for the dropdown. | No | N/A |
/selfrole dropdown role:@Gamer channel:#roles message_link:https://discord.com/channels/123456789012345678/234567890123456789/345678901234567890 placeholder:Select your roles- Adds a dropdown menu to the specified message with the “Gamer” role as an option.