Allow bots to edit their integration role's display data.
I've recently started designing bots for my Discord server. I found one issue that I'm not very fond of and that's that I want my bot to be able to set its own role's color, but can't as a result of the restrictions on editing your highest role.
Due to how permissions work, making my bot edit its role color is impossible until I give it a higher role. This throws a wrench in my plans due to the specific setup of my bot. To save time, I am not going to explain my use case, as I feel it's extra in terms of what I'm requesting.
I think that roles managed by integrations should have more lenient control limitations, namely in the ability to edit the display information even if it's the highest role the bot has.
-
Sounds bad for public bots, if every bot can set their own color and mix up the colors from other discord servers 1 -
"Sounds bad for public bots, if every bot can set their own color and mix up the colors from other discord servers"
This is certainly a good point. I had not factored in this idea.
0 -
I don't know what the policy on bumps of this nature is, but I'm assuming it's okay so long as I have new information to bring forth so that it contributes to discussion and it's not just a crude attempt at exposure.
Given the nature of integrated roles, I see no reasons to not append this in terms of functionality alone.
One potential addition that I believe would also work is appending an "Edit Self Role" permission of sorts rather than just implicitly allowing integrations to manage their own roles' display info. This permission shouldn't remove the ability for administrators / role managers to edit its color, and instead should simply control whether or not the role's color can be altered by the integration holder. It would be a permission shown in OAuth2 just like any other. Additionally, it may be fit to allow the server owner or people with adequate permissions to toggle this so that owners who want their own color enforcement can ensure that it shows up like they want it to.
After sitting on this issue for about a year since my OP, I still would really like to see it and I can't see any immediate caveats to adding it in the manner I just proposed. If anyone has anything that might make this a bad idea (aside from things that aren't avoidable e.g. API changes and how certain bot frameworks would react to the changes), do tell.
1 -
The original role should be transparent, so have the bot:
> make a role one below its
> set the role color to what you want it to be
That way the role is still the correct color, but server mods/admins can edit the role above or that role to make the bot a different color when desired with no change to how discord works.
1 -
This works, but it has a number of complications.
- How does that role get created? Does the bot need to do it (which requires the manage roles permission, what if the server owner doesn't want to grant that?)
- Is it an integrated role? Why take up two role slots and require management of two roles just for color? Why not just edit the original integrated role?
- If it's not an integrated role, what happens if it's deleted?
I still think the original idea of just allowing bots to edit their own integrated role's color is acceptable. It could be locked behind a permission to address the problem of bots randomly changing their color. It should show up when authenticating the bot (adding it to your server) e.g. an "Allow management of my own integrated role" checkbox.
An alternative to this would be an option for the bot application itself, such as "Default Role Color". When a bot is added to the server, the integrated role comes with the given color out of the box, similarly to how the Nitro Booster integrated role always starts out with #f47fff for its color once you get your first boost.
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
5 commentaires