!mention command
See original GitHub issueCurrently, all the roles in the community are unmentionable. This is in order to prevent spam. Before we made this change, people would occasionally come into the community and just mentionspam all the role mentions.
The problem with this is that we sometimes need to mention a role. For example, we mention the @Announcements
role every time we make an announcement. We all desperately wish Discord would allow us to set mention permissions so that only certain roles were allowed to mention other roles, but this is not yet possible.
Currently the manual process looks like this:
- We set the role to be mentionable by everyone
- We ping the role.
- We wait 5-10 seconds
- We set the role to be unmentionable.
The reason we need to do step 3 is that if you set the role to unmentionable too soon after you do the ping, Discord has a tendency to mess up the mention. Sometimes it will not ping everyone, other times there will be a ghost ping.
We’d like to automate the above process, so we’re looking for someone to make a !mention
command. Here’s what we’d like to see:
- Only Moderators, Admins and Owners should be able to use it.
- It takes a role ID or a string as input argument
- The string should not need to be in quotes, even if it has spaces.
- When called, the bot should unlock the role for mention and let the caller know that the role has been unlocked.
- When a role mention for this role is detected in any channel, wait 5 seconds (make this duration configurable), lock the role again and let the caller know that it has been locked in the channel where the unlock was invoked.
- After 5 minutes (this should be configurable), if no role mention has been detected, the unlock should time out and the role should be locked again. Remember here also to let the caller know that it has been locked in the channel where the unlock was invoked.
- If invoked on a role that’s already mentionable (like
@Admins
), return an error message - If invoked on a special role (like
@everyone
), return an error.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
Regarding the invoker role vs specific role mentions, I think it’s best to keep that simple and not worry about it. Just have the command itself limited to Mods, Admins and Owners, and have the command check that the role isn’t already mentionable.
config.yml
would be where that would need to be set, and the config name style and structure should match the style of the other configuration options around it.