From 383b9a30979ff1d6ef65e9e7628ca3d3546dad4a Mon Sep 17 00:00:00 2001 From: Nathan Date: Mon, 7 Sep 2020 21:34:38 +0100 Subject: [PATCH] Update index.js Change multiple ifs into ifelse --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 2167d16..4b8ff11 100755 --- a/index.js +++ b/index.js @@ -48,8 +48,7 @@ client.on('message', async (message) => { Hook PFP: ${hook.avatar}, Hook ID: ${hook.id}`); } - } - if (!message.author.bot) { + } elif (!message.author.bot) { if (message.mentions.has(message.guild.me, {ignoreRoles: true, ignoreEveryone: true})) { if (perms.has("SEND_MESSAGES")) { if (perms.has("EMBED_LINKS")) {