Kardbord / Kard-bot

A Discord bot destined for greatness
GNU Affero General Public License v3.0
1 stars 0 forks source link

Role Select Menu #40

Closed Kardbord closed 2 years ago

Kardbord commented 2 years ago

Add a /role-select command that will function similarly to Probot's "reaction roles" feature.

Requirements

Threshold

Objective

Kardbord commented 2 years ago

For help parsing emojis: https://discord.com/developers/docs/reference#message-formatting-formats

Kardbord commented 2 years ago

41 implements all threshold and objective requirements, minus specifying roles as choices. I ultimately decided against that because it would make role selection more tedious and limit roles per command to 25 or less. Instead, roles can be specified one after another as part of the roles argument, and the bot will simply parse the string. Doing so allows a much higher role limit - 100 or the message character ceiling, whichever comes first.

Kardbord commented 2 years ago

Making a note of this here since it was a huge PITA to figure out: The bot's role needs to be higher than any roles it attempts to assign to, otherwise you'll get a permissions error.