From 8112a9172181849ea05bc790ec26ac0fd125aed6 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 5 May 2021 00:40:00 -0500 Subject: [PATCH] Add missing return --- bot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.js b/bot.js index bcd5a55..4789a49 100644 --- a/bot.js +++ b/bot.js @@ -68,7 +68,7 @@ client.on("message", async message => { prefix = defaultPrefix; } - if (message.content === `<@!${client.user.id}>`) { + if (message.content === `<@!${client.user.id}>` || message.content === `<@${client.user.id}>`) { message.reply(`\nPrefix: \`${prefix}\`\nHelp: \`${prefix}help\`\nChange Prefix: \`${prefix}prefix [new prefix]\``); } @@ -616,6 +616,7 @@ async function roleInfo(message) { async function addRole(message) { if (!message.member.hasPermission('ADMINISTRATOR')) { message.reply("you do not have adequate permissions!") + return; } if (!message.content.split(" ")[1]) {