Browse Source

Updating bot.js

Fixing issue where only lowercase inputs were responded to by the bot
master
xlq902 4 years ago
committed by GitHub
parent
commit
47815ac6d8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      bot.js

2
bot.js

@ -618,7 +618,7 @@ async function usersWith(message) {
message.reply("query must contain at least 3 characters!")
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());
const role = roles.array()[0];
const membersList = roles.array()[0].members.array()
if (membersList.length > threshold) {

Loading…
Cancel
Save