mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 04:32:35 +01:00
Fix missing props in welcome message creation, which causes every client who received the welcome message to disconnect.
This commit is contained in:
parent
ae8f4d6752
commit
63b4a8997f
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user