Fix role color properly
This commit is contained in:
parent
dec973852c
commit
06361bc137
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ module.exports = {
|
|||
sendText = await getCurrentScrobble(message.author.id, message.guild);
|
||||
}
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue