mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-25 05:55:34 +00:00
add type to make sure payload is consistent with other GUILD_CREATE event
This commit is contained in:
@@ -32,6 +32,7 @@ import {
|
||||
DefaultUserGuildSettings,
|
||||
EVENTEnum,
|
||||
Guild,
|
||||
GuildCreateEvent,
|
||||
GuildOrUnavailable,
|
||||
IdentifySchema,
|
||||
Intents,
|
||||
@@ -464,7 +465,7 @@ export async function onIdentify(this: WebSocket, data: Payload) {
|
||||
s: this.sequence++,
|
||||
d: {
|
||||
...new ReadyGuildDTO(x).toJSON(),
|
||||
},
|
||||
} as GuildCreateEvent["data"],
|
||||
})?.catch((e) =>
|
||||
console.error(`[Gateway] error when sending bot guilds`, e),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user