Browse Source

Use toLowerCase() for roleRequest query

master
Abheek Dhawan 4 years ago
parent
commit
0d4e498e1a
  1. 2
      index.js

2
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) {

Loading…
Cancel
Save