mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
I think I got ChannelUpdate working??
This commit is contained in:
@@ -20,12 +20,7 @@ class ChannelUpdateHandler extends AbstractHandler {
|
||||
let data = packet.d;
|
||||
let client = this.packetManager.client;
|
||||
|
||||
let channel = client.store.get('channels', data.id);
|
||||
|
||||
if (channel) {
|
||||
client.store.UpdateChannel(channel, data);
|
||||
}
|
||||
|
||||
client.actions.ChannelUpdate.handle(data);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -20,10 +20,6 @@ class MessageUpdateHandler extends AbstractHandler {
|
||||
|
||||
let response = client.actions.MessageUpdate.handle(data);
|
||||
|
||||
if (response.old) {
|
||||
client.emit(Constants.Events.MESSAGE_UPDATE, response.old, response.updated);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user