From ae94e8f6b7699e3b323247d43b0ea78c7605fb5c Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 18 Dec 2021 19:27:10 +0500 Subject: [PATCH] tag admins and moders in staff --- commands/General/staff.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/General/staff.js b/commands/General/staff.js index b8e79956..e1a88c00 100644 --- a/commands/General/staff.js +++ b/commands/General/staff.js @@ -23,8 +23,8 @@ class Staff extends Command { const moderators = message.guild.members.cache.filter((m) => !administrators.has(m.id) && m.hasPermission("MANAGE_MESSAGES") && !m.user.bot); const embed = new Discord.MessageEmbed() .setAuthor(message.translate("general/staff:TITLE", { guild: message.guild.name })) - .addField(message.translate("general/staff:ADMINS"), (administrators.size > 0 ? administrators.map((a) => `${this.client.customEmojis.status[a.presence.status]} | ${a.user.tag}`).join("\n") :message.translate("general/staff:NO_ADMINS"))) - .addField(message.translate("general/staff:MODS"), (moderators.size > 0 ? moderators.map((m) => `${this.client.customEmojis.status[m.presence.status]} | ${m.user.tag}`).join("\n") : message.translate("general/staff:NO_MODS"))) + .addField(message.translate("general/staff:ADMINS"), (administrators.size > 0 ? administrators.map((a) => `${this.client.customEmojis.status[a.presence.status]} | <@${a.user.id}>`).join("\n") : message.translate("general/staff:NO_ADMINS"))) + .addField(message.translate("general/staff:MODS"), (moderators.size > 0 ? moderators.map((m) => `${this.client.customEmojis.status[m.presence.status]} | <@${m.user.id}>`).join("\n") : message.translate("general/staff:NO_MODS"))) .setColor(data.config.embed.color) .setFooter(data.config.embed.footer); message.channel.send(embed);