Fix missing props in welcome message creation, which causes every client who received the welcome message to disconnect.

This commit is contained in:
Madeline committed 2023-02-01 00:12:00 +11:00
1 parent b31ce62bd5
commit b8d58dba44
1 file changed
+5 -1
+5 -1
View File
@@ -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(),