From 0c85ed9f4075e840d0b8d48e8354a6d3aeedca60 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Thu, 1 Apr 2021 23:21:15 -0500 Subject: [PATCH] Add return for wrong channel --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index f3aefe3..8ccddbd 100644 --- a/index.js +++ b/index.js @@ -125,7 +125,8 @@ async function roleRequest(message) { const role = message.content.substring(13).toLowerCase(); const possibleRoles = ['spec', 'spectator', 'reader', 'writer']; if (message.channel.id !== "826904255012667452") { - message.reply("wrong channel!") + message.reply("wrong channel!"); + return; } if (possibleRoles.indexOf(role) === -1) { message.reply("not a valid role!");