mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 18:55:28 +00:00
bridge role colors
This commit is contained in:
parent
c16e29aa28
commit
f985c6f499
|
@ -196,6 +196,11 @@ client.on('messageCreate', async message => {
|
||||||
masquerade: {
|
masquerade: {
|
||||||
name: message.author.username,
|
name: message.author.username,
|
||||||
avatar: message.author.displayAvatarURL({ size: 128 }),
|
avatar: message.author.displayAvatarURL({ size: 128 }),
|
||||||
|
colour: channel.server?.havePermission('ManageRole')
|
||||||
|
? message.member?.displayColor // Discord.js returns black or 0 instead of undefined when no role color is set
|
||||||
|
? message.member?.displayHexColor
|
||||||
|
: 'var(--foreground)'
|
||||||
|
: undefined,
|
||||||
},
|
},
|
||||||
embeds: message.embeds.length
|
embeds: message.embeds.length
|
||||||
? message.embeds.map(e => new GenericEmbed(e).toRevolt())
|
? message.embeds.map(e => new GenericEmbed(e).toRevolt())
|
||||||
|
|
Loading…
Reference in a new issue