Actually add GUILD_SYNC

This commit is contained in:
Amish Shah
2016-09-03 17:59:10 +01:00
parent 513fdabd19
commit a172fffd76
10 changed files with 69 additions and 6 deletions

View File

@@ -625,11 +625,12 @@ class Guild {
return this.members.get(this.ownerID);
}
/**
* Syncs this guild (already done automatically every 30 seconds)
* @returns {void}
*/
sync() {
return this.client.ws.send({
op: 12,
d: [this.id],
});
this.client.syncGuilds([this]);
}
}