mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fixed message cache updating
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user