This commit is contained in:
git-bruh 2021-01-11 12:05:14 +05:30
parent ec472f92bb
commit d1a280bab8
No known key found for this signature in database
GPG key ID: E1475C50075ADCE6

View file

@ -450,7 +450,7 @@ class Callbacks(object):
message = message.replace(f":{emote}:", str(emote_))
for mention in mentions:
if mention[2] != "":
if mention[2]:
member = await guild.query_members(query=mention[2])
if member:
message = message.replace(mention[1], member[0].mention)