mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
Added GuildUpdate handling, and setting guilds details
This commit is contained in:
@@ -19,11 +19,7 @@ class GuildUpdateHandler extends AbstractHandler {
|
||||
let data = packet.d;
|
||||
let client = this.packetManager.client;
|
||||
|
||||
let guild = client.store.get('guilds', data.id);
|
||||
|
||||
if (guild) {
|
||||
client.store.UpdateGuild(guild, data);
|
||||
}
|
||||
let response = client.actions.GuildUpdate.handle(data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user