mentions fixing

This commit is contained in:
klemek
2021-01-11 22:31:30 +01:00
parent e1f56f222b
commit 3c3d3cf9dd
+4 -3
View File
@@ -44,12 +44,13 @@ class Scanner(ABC):
return
# check args validity
str_channel_mentions = [channel.id for channel in message.channel_mentions]
str_mentions = [member.id for member in message.mentions]
str_channel_mentions = [str(channel.id) for channel in message.channel_mentions]
str_mentions = [str(member.id) for member in message.mentions]
print(str_mentions)
for i, arg in enumerate(args[1:]):
if re.match(r"^<@!?\d+>$", arg):
arg = arg[3:-1] if "!" in arg else arg[2:-1]
if re.match(r"^<#!?\d+>$", arg):
elif re.match(r"^<#!?\d+>$", arg):
arg = arg[3:-1] if "!" in arg else arg[2:-1]
if (
arg not in self.valid_args + ["me", "here", "fast"]