Skip to content

Commit

Permalink
Merge commit '232accba33a700b48cda451980774fc7fe188cc5' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
fourjr committed Jan 14, 2021
2 parents d00b562 + 232accb commit 04b706b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ async def on_typing(self, channel, user, _):

async def handle_reaction_events(self, payload):
user = self.get_user(payload.user_id)
if user.bot:
if user is None or user.bot:
return

channel = self.get_channel(payload.channel_id)
Expand Down
2 changes: 1 addition & 1 deletion cogs/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ async def logs(self, ctx, *, user: User = None):
thread = ctx.thread
if not thread:
raise commands.MissingRequiredArgument(SimpleNamespace(name="member"))
user = thread.recipient
user = thread.recipient or await self.bot.fetch_user(thread.id)

default_avatar = "https://cdn.discordapp.com/embed/avatars/0.png"
icon_url = getattr(user, "avatar_url", default_avatar)
Expand Down

0 comments on commit 04b706b

Please sign in to comment.