Make syncGuilds off limits to bot accounts

This commit is contained in:
Amish Shah
2016-09-03 23:25:20 +01:00
parent 5af09d335c
commit 16fbbde35c
3 changed files with 16 additions and 7 deletions

View File

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