Use the role color as the embed color
This commit is contained in:
parent
60580483ec
commit
dec973852c
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue