diff --git a/index.js b/index.js index 0f15cef..388e7e7 100644 --- a/index.js +++ b/index.js @@ -45,7 +45,7 @@ async function usersWithRole(message) { if (message.content.split(" ")[1].length < 3) { message.reply("query must contain at least 3 characters!") } - 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])).name; console.log(message.content.split(" ")[1]); console.log(roles); message.reply(roles);