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

@@ -173,6 +173,13 @@ class Client extends EventEmitter {
return timeout;
}
syncGuilds(guilds = this.guilds.array()) {
return this.ws.send({
op: 12,
d: guilds.map(g => g.id),
});
}
/**
* Caches a user, or obtains it from the cache if it's already cached.
* If the user isn't already cached, it will only be obtainable by OAuth bot accounts.