Skip to content

Commit 232accb

Browse files
committed
Fix error raised when recipient is not cached and reacts to reactions in DM channel.
1 parent 2efd4a5 commit 232accb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ async def on_typing(self, channel, user, _):
11531153

11541154
async def handle_reaction_events(self, payload):
11551155
user = self.get_user(payload.user_id)
1156-
if user.bot:
1156+
if user is None or user.bot:
11571157
return
11581158

11591159
channel = self.get_channel(payload.channel_id)

0 commit comments

Comments
 (0)