From 0cebda1936575650616c11a5a433032dd5762981 Mon Sep 17 00:00:00 2001 From: klemek Date: Thu, 14 Jan 2021 19:57:47 +0100 Subject: [PATCH] use of discord.AllowedMentions --- src/scanners/scanner.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/scanners/scanner.py b/src/scanners/scanner.py index 9bf7b7f..7c87322 100644 --- a/src/scanners/scanner.py +++ b/src/scanners/scanner.py @@ -88,7 +88,9 @@ class Scanner(ABC): # Start computing data async with message.channel.typing(): 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( progress, self.channels, fast="fast" in args @@ -141,7 +143,7 @@ class Scanner(ABC): await message.channel.send( response, reference=message if first else None, - mention_author=False, + allowed_mentions=discord.AllowedMentions.none(), ) first = False response = "" @@ -150,7 +152,7 @@ class Scanner(ABC): await message.channel.send( response, reference=message if first else None, - mention_author=False, + allowed_mentions=discord.AllowedMentions.none(), ) # Delete custom progress message await progress.delete()