mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-29 07:39:53 +00:00
Migrate GuildDeleteEvent to satisfies, part of #1577
This commit is contained in:
@@ -55,7 +55,7 @@ router.post(
|
||||
id: guild_id,
|
||||
},
|
||||
guild_id: guild_id,
|
||||
} as GuildDeleteEvent),
|
||||
} satisfies GuildDeleteEvent),
|
||||
]);
|
||||
|
||||
return res.sendStatus(204);
|
||||
|
||||
@@ -204,7 +204,7 @@ export class Member extends BaseClassWithoutId {
|
||||
id: guild_id,
|
||||
},
|
||||
user_id: user_id,
|
||||
} as GuildDeleteEvent),
|
||||
} satisfies GuildDeleteEvent),
|
||||
emitEvent({
|
||||
event: "GUILD_MEMBER_REMOVE",
|
||||
data: { guild_id, user: member.user.toPublicUser() },
|
||||
|
||||
Reference in New Issue
Block a user