From 6f05a4c91bc07ce1c4a67253fb5904d1796c8601 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 2 Apr 2021 11:45:04 -0500 Subject: [PATCH] Use user(s) instead of users --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b099156..b29a0c9 100644 --- a/index.js +++ b/index.js @@ -121,7 +121,7 @@ async function usersWithRole(message) { } const roles = message.guild.roles.cache.filter(role => role.name.toLowerCase().includes(message.content.split(" ")[1])); const roleEmbed = new Discord.MessageEmbed() - .setTitle(`${roles.array()[0].members.array().length} users with the role \`${roles.array()[0].name}\`:`) + .setTitle(`${roles.array()[0].members.array().length} user(s) with the role \`${roles.array()[0].name}\`:`) .setDescription(" • " + roles.array()[0].members.map(m => m.user.tag).join('\n\n • ')) .setFooter(`Role ID: ${roles.array()[0].id}`) .setTimestamp();