Skip to content

Commit

Permalink
Fix handling of partial message updates
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha committed Aug 3, 2018
1 parent 7dd9a81 commit 6741be7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/gateway/Shard.js
Expand Up @@ -443,6 +443,10 @@ class Shard extends EventEmitter {
channelMentions: message.channelMentions,
tts: message.tts
};
} else if(!packet.d.timestamp) {
packet.d.channel = channel;
this.emit("messageUpdate", packet.d, null);
break;
}
/**
* Fired when a message is updated
Expand Down

0 comments on commit 6741be7

Please sign in to comment.