mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-13 23:03:23 +00:00
Migrate Member#addToGuild GuildCreateEvent to satisfies, part of #1577
This commit is contained in:
@@ -412,10 +412,10 @@ export class Member extends BaseClassWithoutId {
|
||||
stage_instances: [],
|
||||
threads: [],
|
||||
embedded_activities: [],
|
||||
voice_states: guild.voice_states,
|
||||
voice_states: guild.voice_states.map((x) => x.toPublicVoiceState()),
|
||||
},
|
||||
user_id,
|
||||
} as GuildCreateEvent),
|
||||
} satisfies GuildCreateEvent),
|
||||
]);
|
||||
|
||||
if (guild.system_channel_id) {
|
||||
|
||||
@@ -213,6 +213,8 @@ export interface GuildCreateEvent extends Event {
|
||||
stage_instances: never[];
|
||||
threads: never[];
|
||||
embedded_activities: never[];
|
||||
// Only when not using PRIORITISED_READY_PAYLOAD capability
|
||||
voice_states?: PublicVoiceState[];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user