From 0d4e498e1aa58c95428456edd09d2592084f9177 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 3 Apr 2021 11:41:34 -0500 Subject: [PATCH] Use toLowerCase() for roleRequest query --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ed683b3..661bd4f 100644 --- a/index.js +++ b/index.js @@ -400,7 +400,7 @@ async function roleRequest(message) { return; } - const roles = message.guild.roles.cache.filter(role => role.name.toLowerCase().includes(message.content.split(" ")[1])); + const roles = message.guild.roles.cache.filter(role => role.name.toLowerCase().includes(message.content.split(" ")[1].toLowerCase())); let roleChannel; if (roles.array().length < 1) {