summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-02-01 00:12:00 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-02-01 00:12:00 +1100
commit63b4a8997f9c6d4b6f50699a49b632782d1ab9f0 (patch)
tree349494568a9175ed65cac3e031dfb55c3659b575 /src
parentcheck pw and other auth before letting users undisable (diff)
downloadserver-63b4a8997f9c6d4b6f50699a49b632782d1ab9f0.tar.xz
Fix missing props in welcome message creation, which causes every client who received the welcome message to disconnect.
Diffstat (limited to 'src')
-rw-r--r--src/util/entities/Member.ts6
1 files changed, 5 insertions, 1 deletions
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(),