Skip to content

Commit

Permalink
Bot will always place the actual tag of the author, instead of the ni…
Browse files Browse the repository at this point in the history
…ckname of the other
  • Loading branch information
DewGaming committed Sep 29, 2020
1 parent 4def5d0 commit 06f3ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/quote.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ async def quote(self, ctx, *msg_ids):
if msg_id.isnumeric():
msg = await channel.fetch_message(msg_id)
message = msg.content
user = msg.author
user = self.bot.get_user(msg.author.id)
else:
message = msg_id
user_id = int(msg_ids[1].replace('<@!', '').replace('>', ''))
user_id = int("".join(filter(str.isdigit, msg_ids[1])))
user = self.bot.get_user(user_id)
except discord.NotFound:
await ctx.send(f"No message exists with ID `{msg_id}`.")
Expand Down

0 comments on commit 06f3ea3

Please sign in to comment.