Add enforce_role_position to role options #4268
Unanswered
Kyzegs
asked this question in
API Feature Requests & Ideas
Replies: 1 comment
-
Would be nice to also have an option to exclude managed roles 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The problem
Other bot creators that I know and I have run into the issue where the bot could not assign or edit a role above the bot's top role. Most robust bots will have an error message telling the user that this is impossible. The problem is that the user would need to retype the command, which could be quite an annoyance.
Solution
I'd love to have a way to enforce the role position of the bot. Meaning, if a user tries to pass a role with a higher position than the top bot role, it'll not allow them to submit it. Functionality would look a bit like
channel_types
,min_value
, andmax_value
.Implementation
How the payload would look like:
Beta Was this translation helpful? Give feedback.
All reactions