Fix role color properly

This commit is contained in:
SileNce5k 2024-04-08 12:33:01 +02:00
parent dec973852c
commit 06361bc137
No known key found for this signature in database
GPG key ID: 961132EB78C8915F

View file

@ -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;