mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Actually add GUILD_SYNC
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user