From dec973852c0033760bfb0d57dd074b0fe93f5771 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Mon, 8 Apr 2024 12:26:54 +0200 Subject: [PATCH] Use the role color as the embed color --- commands/misc/fm.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands/misc/fm.js b/commands/misc/fm.js index aadeec6..fd9a1ec 100644 --- a/commands/misc/fm.js +++ b/commands/misc/fm.js @@ -33,6 +33,11 @@ module.exports = { sendText = await getCurrentScrobble(message.author.id, message.guild); } if(sendText.embed != null){ + let roleColor = 15788778; + if (user.roles.color) { + roleColor = user.roles.color.color; + } + sendText.embed.setColor(roleColor); message.channel.send({embeds :[sendText.embed]}) }else{ message.channel.send(sendText.text);