From b8d58dba444192aa501c5adbb946c9169cca9d5c Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 1 Feb 2023 00:12:00 +1100 Subject: Fix missing props in welcome message creation, which causes every client who received the welcome message to disconnect. --- src/util/entities/Member.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts index c68fe215..c097c1f0 100644 --- a/src/util/entities/Member.ts +++ b/src/util/entities/Member.ts @@ -413,7 +413,7 @@ export class Member extends BaseClassWithoutId { ]); if (guild.system_channel_id) { - // send welcome message + // Send a welcome message const message = Message.create({ type: 7, guild_id: guild.id, @@ -425,6 +425,10 @@ export class Member extends BaseClassWithoutId { embeds: [], sticker_items: [], edited_timestamp: undefined, + mentions: [], + mention_channels: [], + mention_roles: [], + mention_everyone: false, }); await Promise.all([ message.save(), -- cgit 1.4.1