use of discord.AllowedMentions

This commit is contained in:
klemek
2021-01-14 19:57:47 +01:00
parent 3a4462af06
commit 0cebda1936
+5 -3
View File
@@ -88,7 +88,9 @@ class Scanner(ABC):
# Start computing data # Start computing data
async with message.channel.typing(): async with message.channel.typing():
progress = await message.channel.send( progress = await message.channel.send(
"```Starting analysis...```", reference=message "```Starting analysis...```",
reference=message,
allowed_mentions=discord.AllowedMentions.none(),
) )
total_msg, total_chan = await logs.load( total_msg, total_chan = await logs.load(
progress, self.channels, fast="fast" in args progress, self.channels, fast="fast" in args
@@ -141,7 +143,7 @@ class Scanner(ABC):
await message.channel.send( await message.channel.send(
response, response,
reference=message if first else None, reference=message if first else None,
mention_author=False, allowed_mentions=discord.AllowedMentions.none(),
) )
first = False first = False
response = "" response = ""
@@ -150,7 +152,7 @@ class Scanner(ABC):
await message.channel.send( await message.channel.send(
response, response,
reference=message if first else None, reference=message if first else None,
mention_author=False, allowed_mentions=discord.AllowedMentions.none(),
) )
# Delete custom progress message # Delete custom progress message
await progress.delete() await progress.delete()