Set embed to the average color of the album cover on fm command
All checks were successful
CI / CI (push) Successful in 22s

And do not set a color in misc/fm.js when there already is one set.
This commit is contained in:
SileNce5k 2025-09-06 03:24:02 +02:00
commit 9ec53f216c
Signed by: SileNce
GPG key ID: B0A142BB4291B204
2 changed files with 53 additions and 11 deletions

View file

@ -87,11 +87,13 @@ module.exports = {
if(sendText.embed != null){
let parse = parseMention(message.author.id, message.guild)
let user = message.guild.members.cache.get(parse);
let roleColor = 15788778;
if (user.roles.color) {
roleColor = user.roles.color.color;
if(!sendText.embed.data.color){
let roleColor = 15788778;
if (user.roles.color) {
roleColor = user.roles.color.color;
}
sendText.embed.setColor(roleColor);
}
sendText.embed.setColor(roleColor);
message.channel.send({embeds :[sendText.embed]})
}else{
message.channel.send(sendText.text.replaceAll("<prefix>", prefix));