add type to make sure payload is consistent with other GUILD_CREATE event
This commit is contained in:
parent
64d5dcd53f
commit
f41164945e
@ -32,6 +32,7 @@ import {
|
|||||||
DefaultUserGuildSettings,
|
DefaultUserGuildSettings,
|
||||||
EVENTEnum,
|
EVENTEnum,
|
||||||
Guild,
|
Guild,
|
||||||
|
GuildCreateEvent,
|
||||||
GuildOrUnavailable,
|
GuildOrUnavailable,
|
||||||
IdentifySchema,
|
IdentifySchema,
|
||||||
Intents,
|
Intents,
|
||||||
@ -464,7 +465,7 @@ export async function onIdentify(this: WebSocket, data: Payload) {
|
|||||||
s: this.sequence++,
|
s: this.sequence++,
|
||||||
d: {
|
d: {
|
||||||
...new ReadyGuildDTO(x).toJSON(),
|
...new ReadyGuildDTO(x).toJSON(),
|
||||||
},
|
} as GuildCreateEvent["data"],
|
||||||
})?.catch((e) =>
|
})?.catch((e) =>
|
||||||
console.error(`[Gateway] error when sending bot guilds`, e),
|
console.error(`[Gateway] error when sending bot guilds`, e),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user