mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-09 23:39:50 +00:00
Fix case where on_reaction_add returned None in PMs with users.
This commit is contained in:
parent
9626210633
commit
793cbedd0d
@ -689,6 +689,8 @@ class ConnectionState:
|
|||||||
|
|
||||||
def _get_member(self, channel, id):
|
def _get_member(self, channel, id):
|
||||||
if channel.is_private:
|
if channel.is_private:
|
||||||
|
if id == self.user.id:
|
||||||
|
return self.user
|
||||||
return utils.get(channel.recipients, id=id)
|
return utils.get(channel.recipients, id=id)
|
||||||
else:
|
else:
|
||||||
return channel.server.get_member(id)
|
return channel.server.get_member(id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user