From a8abbd01742958ba5d799d193837d353d59e4875 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 8 Jul 2020 00:44:59 -0500 Subject: [PATCH] fix? --- src/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 1eee00e..b6ae8ed 100755 --- a/src/index.js +++ b/src/index.js @@ -145,13 +145,14 @@ client.on("message", async message => { const sayMessage = args.join(" "); if (message.member.roles.cache.some(r=>["Admin","Mods","Member of the Order","Botmeister","Ally of the Order","say"].includes(r.name)) ){ if(message.content.includes("@"));{ + return message.reply("haha no") + } // Then we delete the command message (sneaky, right?). The catch just ignores the error with a cute smiley thing. - // eslint-disable-next-line no-unused-vars + // eslint-disable-next-line no-unused-vars, no-unreachable message.delete().catch(O_o=>{}); // And we get the bot to say the thing: + // eslint-disable-next-line no-unreachable return message.channel.send(sayMessage); - - } } }