Trying to sanitize mentions? Here are few examples what you should use. Note: Make sure you're looking at your library example and you have the required library version or higher installed otherwise it won't work.
Discord.py (requires v1.4.0 or higher) There are multiple options:
- add
, allowed_mentions=discord.AllowedMentions(roles=False, everyone=False)
after the output of your command. (works for individual messages only) - put it into client (if you do this, all messages your bot sends will ping nobody by default) ╠ Example 1 If you have it subclassed: