From 573b8619cbc0ed366d94d25498784a786f675fdc Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 5 Apr 2021 10:30:10 -0500 Subject: [PATCH] Make sure to send role info embed --- bot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.js b/bot.js index 002a242..e1eb23b 100644 --- a/bot.js +++ b/bot.js @@ -356,7 +356,7 @@ async function roleInfo(message) { const role = roles.array()[0]; - const roleCreateEmbed = new Discord.MessageEmbed() + const roleInfoEmbed = new Discord.MessageEmbed() .setTitle(`Role \`${role.name}\` Info`) .setAuthor(message.author.tag, message.author.avatarURL()) .addField("Permissions", role.permissions.toArray().map(p => `\`${p}\``.toLowerCase()).join(' • ')) @@ -364,6 +364,7 @@ async function roleInfo(message) { .setFooter("Role ID: " + role.id) .setTimestamp() .setColor('00aaff'); + message.channel.send(roleInfoEmbed) } async function addRole(message) {