fix presence updating

This commit is contained in:
Amish Shah
2016-10-25 21:40:53 +01:00
parent 2ee6da8d79
commit 0f8e8dddff
4 changed files with 5 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ class ReadyHandler extends AbstractHandler {
client._setPresence(presence.user.id, presence);
}
if (!client.user.bot) client.setInterval(client.syncGuilds.bind(client), 30000);
if (!client.user.bot && client.options.sync) client.setInterval(client.syncGuilds.bind(client), 30000);
client.once('ready', client.syncGuilds.bind(client));
if (!client.users.has('1')) {