Added GuildUpdate handling, and setting guilds details

This commit is contained in:
hydrabolt
2016-05-03 16:42:38 +01:00
parent 82ac3d1c44
commit ab17375248
8 changed files with 215 additions and 11 deletions

View File

@@ -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);
}