mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Make syncGuilds off limits to bot accounts
This commit is contained in:
@@ -623,10 +623,12 @@ class Guild {
|
||||
}
|
||||
|
||||
/**
|
||||
* Syncs this guild (already done automatically every 30 seconds)
|
||||
* Syncs this guild (already done automatically every 30 seconds). Only applicable to user accounts.
|
||||
*/
|
||||
sync() {
|
||||
this.client.syncGuilds([this]);
|
||||
if (!this.client.user.bot) {
|
||||
this.client.syncGuilds([this]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user