Reconsider all commands to use a ctx.reply
wrapper with pings disabled
#42
Labels
enhancement
New feature or request
ctx.reply
wrapper with pings disabled
#42
It is possible to have the bot send a message containing mentions, but without actually pinging the users or roles mentioned. It is also possible to disable at-everyone/at-here and reply-to-user pings.
This means there's no need to edit the mentions in after-the-fact, or use embeds specifically to avoid pings.
However, this requires an
allowed_mentions
parameter to be passed in with everyContext.send()
orContext.reply()
call:This behaviour can be configured globally for the bot by default, but it cannot be configured at the extension level.
A more succinct solution might be to wrap all send/reply calls in a method that supplies the
allowed_mentions
by default:Such a method can be defined and adjusted per-extension.
The text was updated successfully, but these errors were encountered: