Fix permissionsFor

This commit is contained in:
Amish Shah
2016-09-03 23:46:34 +01:00
parent 16fbbde35c
commit 5a9c42061f
3 changed files with 3 additions and 3 deletions

View File

@@ -179,7 +179,7 @@ class Client extends EventEmitter {
* @param {array<Guild>} [guilds=this.guilds.array()] An array of guilds to sync.
*/
syncGuilds(guilds = this.guilds.array()) {
if (!this.client.user.bot) {
if (!this.user.bot) {
this.ws.send({
op: 12,
d: guilds.map(g => g.id),