Using AllowedMentions parameter on client setup to avoid mentioning users
This commit is contained in:
parent
c17ff210f5
commit
d66bd81413
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue