mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 05:22:15 +00:00
fixed message cache updating
This commit is contained in:
parent
ead8287881
commit
7b7d7ad1af
2 changed files with 4 additions and 0 deletions
|
|
@ -333,6 +333,8 @@ var Client = (function () {
|
|||
var newMessage = new Message(info, channel, mentions, formerMessage.author);
|
||||
|
||||
self.trigger("messageUpdate", newMessage, formerMessage);
|
||||
|
||||
channel.messages[channel.messages.indexOf(formerMessage)] = newMessage;
|
||||
}
|
||||
|
||||
// message isn't in cache, and if it's a partial it could cause
|
||||
|
|
|
|||
|
|
@ -256,6 +256,8 @@ class Client {
|
|||
|
||||
self.trigger("messageUpdate", newMessage, formerMessage);
|
||||
|
||||
channel.messages[channel.messages.indexOf(formerMessage)] = newMessage;
|
||||
|
||||
}
|
||||
|
||||
// message isn't in cache, and if it's a partial it could cause
|
||||
|
|
|
|||
Loading…
Reference in a new issue