serenity-rs / poise

Discord bot command framework for serenity, with advanced features like edit tracking and flexible argument parsing
MIT License
644 stars 114 forks source link

Disable allowed mentions on certain errors #277

Closed jamesbt365 closed 4 months ago

jamesbt365 commented 4 months ago

Fixes #263.

Disables mentions so errors don't break out and ping people, at least in errors that i reasonably suspect this could happen accidentally.

Not going to disable it on specific errors like SubcommandRequired because if you name your subcommand something that escapes the codeblock and pings people, thats on you.

If there is anything I missed I'll add it in, just mention the name of the error.