mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 18:55:28 +00:00
don't bridge author color on system messages
This commit is contained in:
parent
dd0bfbce37
commit
6449ff3a2e
|
@ -313,11 +313,13 @@ client.on("messageCreate", async (message) => {
|
||||||
: bridgeCfg.config?.bridge_nicknames
|
: bridgeCfg.config?.bridge_nicknames
|
||||||
? message.member?.displayAvatarURL({ size: 128 })
|
? message.member?.displayAvatarURL({ size: 128 })
|
||||||
: message.author.displayAvatarURL({ size: 128 }),
|
: message.author.displayAvatarURL({ size: 128 }),
|
||||||
colour: channel.server?.havePermission("ManageRole")
|
colour:
|
||||||
? message.member?.displayColor // Discord.js returns black or 0 instead of undefined when no role color is set
|
channel.server?.havePermission("ManageRole") &&
|
||||||
? message.member?.displayHexColor
|
!message.system
|
||||||
: "var(--foreground)"
|
? message.member?.displayColor // Discord.js returns black or 0 instead of undefined when no role color is set
|
||||||
: undefined,
|
? message.member?.displayHexColor
|
||||||
|
: "var(--foreground)"
|
||||||
|
: undefined,
|
||||||
},
|
},
|
||||||
embeds: [
|
embeds: [
|
||||||
...stickerEmbeds,
|
...stickerEmbeds,
|
||||||
|
|
Loading…
Reference in a new issue