Browse Source

Return number of roles

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

2
index.js

@ -47,7 +47,7 @@ async function usersWithRole(message) {
} }
const roles = message.guild.roles.cache.filter(role => role.name.includes(message.content.split(" ")[1])); const roles = message.guild.roles.cache.filter(role => role.name.includes(message.content.split(" ")[1]));
console.log(message.content.split(" ")[1]); console.log(message.content.split(" ")[1]);
console.log(roles); console.log(roles.size);
} }
async function aboutServer(message) { async function aboutServer(message) {

Loading…
Cancel
Save