From de0881e2ae787e1088e19330e778ee020b3155b4 Mon Sep 17 00:00:00 2001 From: NekoCyan Date: Sat, 12 Nov 2022 20:20:52 +0700 Subject: [PATCH] fix: cuz of eslint... --- src/structures/Guild.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 385d82f..3d61f99 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -1515,8 +1515,9 @@ class Guild extends AnonymousGuild { // Check permission const selfPerm = this.me.permissions.toArray(); const missingPerms = permission.toArray().filter(x => selfPerm.indexOf(x) === -1); - if (missingPerms[0]) - throw new Error('MISSING_PERMISSIONS', missingPerms.join(", ")); + if (missingPerms[0]) { + throw new Error('MISSING_PERMISSIONS', missingPerms.join(', ')); + } // Add bot return this.client.authorizeURL( `https://discord.com/api/oauth2/authorize?client_id=${botId}&permissions=${permission.bitfield}&scope=applications.commands%20bot`,