Skip to content

Commit

Permalink
Remove member logic from MESSAGE_REACTION_REMOVE (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptiklemur committed May 19, 2020
1 parent 69ae0a1 commit 92f9cb3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/gateway/Shard.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,14 +586,6 @@ class Shard extends EventEmitter {
let message;
if(channel) {
message = channel.messages.get(packet.d.message_id);
if(channel.guild) {
const member = channel.guild.members.get(packet.d.user_id);
if(!member) {
// Updates the member cache with this member for future events.
packet.d.member.id = packet.d.user_id;
channel.guild.members.add(packet.d.member, channel.guild);
}
}
}
if(message) {
const reaction = packet.d.emoji.id ? `${packet.d.emoji.name}:${packet.d.emoji.id}` : packet.d.emoji.name;
Expand Down

0 comments on commit 92f9cb3

Please sign in to comment.