From 06e4be2e7f4c3d68dfc09caaa7b74c167459572d Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 5 Apr 2021 10:29:24 -0500 Subject: [PATCH] Don't query for users in roleInfo --- bot.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/bot.js b/bot.js index 6a87424..002a242 100644 --- a/bot.js +++ b/bot.js @@ -349,16 +349,6 @@ async function roleInfo(message) { const roles = message.guild.roles.cache.filter(role => role.name.toLowerCase().includes(message.content.split(" ")[1])); let roleChannel; - if (!message.content.split(" ")[2]) { - message.reply("user query must contain at least 3 characters!") - return; - } - - if (message.content.split(" ")[2].length < 3) { - message.reply("user query must contain at least 3 characters!") - return; - } - if (roles.array().length < 1) { message.reply("no roles found with that name!"); return;