Using AllowedMentions parameter on client setup to avoid mentioning users

This commit is contained in:
Elnath 2021-02-09 22:53:13 +01:00
parent c17ff210f5
commit d66bd81413
1 changed files with 2 additions and 1 deletions

View File

@ -20,8 +20,9 @@ class VocalMaisBot(commands.Cog):
super().__init__() super().__init__()
self.bot = commands.Bot( self.bot = commands.Bot(
commands.when_mentioned, commands.when_mentioned,
intents = discord.Intents(voice_states = True, guild_messages = True, guilds = True),
help_command = commands.MinimalHelpCommand(), 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.bot.add_cog(self)
self.channels_config = channels_config self.channels_config = channels_config