Skip to content

Allow role mentions in specific areas #1038

@Den4200

Description

@Den4200

Description

Since we do not allow the bot to mention roles anymore (b1c0177) except for moderators+ (36330b1) after the incident, this has created a new issue where the bot cannot ping roles where it is actually needed in certain places. This needs to be fixed.

Some of these places include:

  • Mod alerts (pings @everyone)
  • Mod log (pings @everyone)
  • The help channel system (pings @Helpers)
  • Syncers (pings @PyDis Core Developers)

There may be some other areas I missed, so please look over the codebase carefully and explicitly allow role mentions where needed.

Implementation

We can use discord.AllowedMentions when sending messages where non-whitelisted role mentions are needed, which will override the global setting. This object can be passed using the allowed_mentions kwarg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: utilityRelated to utility commands: (bot, eval, extensions, jams, reminders, snekbox, utils)p: 1 - highHigh Prioritys: planningDiscussing detailst: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions