Browse Source
Merge pull request #2 from xlq902/patch-1
Update bot.js to fix issue #1
master
Abheek
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
bot.js
|
|
@ -634,7 +634,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) { |
|
|
|