8.4.1 guilldMemberAdd update.
Added if statement to .setAccentColor allowing you to remove the color from the config.
This commit is contained in:
1 parent
93c793f393
commit
571bd586fa
1 file changed
+4
-3
@@ -36,10 +36,11 @@ function getWelcomeThumbnail(client, member, iconCfg) {
|
||||
|
||||
function buildModernComponents(client, member) {
|
||||
const container = new ContainerBuilder()
|
||||
.setAccentColor(
|
||||
parseInt(msgconfig.Welcome.Modern.Colour.replace("#", ""), 16)
|
||||
);
|
||||
|
||||
if (msgconfig.Welcome.Modern.Colour) {
|
||||
container .setAccentColor(parseInt(msgconfig.Welcome.Modern.Colour.replace("#", ""), 16));
|
||||
}
|
||||
|
||||
const section = new SectionBuilder().addTextDisplayComponents(
|
||||
new TextDisplayBuilder().setContent(
|
||||
msgconfig.Welcome.Modern.Title.replace(/%joined_user%/g, member.user)
|
||||
|
||||
Reference in new issue
Block a user