From d66bd8141364a11223630fa964ab4fd294567c4b Mon Sep 17 00:00:00 2001 From: Elnath Date: Tue, 9 Feb 2021 22:53:13 +0100 Subject: [PATCH] Using AllowedMentions parameter on client setup to avoid mentioning users --- VocalMaisBot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VocalMaisBot.py b/VocalMaisBot.py index 607c97b..d1aafea 100755 --- a/VocalMaisBot.py +++ b/VocalMaisBot.py @@ -20,8 +20,9 @@ class VocalMaisBot(commands.Cog): super().__init__() self.bot = commands.Bot( commands.when_mentioned, - intents = discord.Intents(voice_states = True, guild_messages = True, guilds = True), help_command = commands.MinimalHelpCommand(), + intents = discord.Intents(voice_states = True, guild_messages = True, guilds = True), + allowed_mentions = discord.AllowedMentions.none(), ) self.bot.add_cog(self) self.channels_config = channels_config