diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-04-03 23:50:48 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-04-03 23:50:48 +1000 |
commit | 6ee26082efddfa4f996b4b0424a664a6a592501c (patch) | |
tree | da69812661ebe48cac1240482cbeedd7082d2317 /src/util/interfaces/Event.ts | |
parent | allow all role props through ready (diff) | |
download | server-6ee26082efddfa4f996b4b0424a664a6a592501c.tar.xz |
Respect CLIENT_STATE_V2 capability
Diffstat (limited to '')
-rw-r--r-- | src/util/interfaces/Event.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/interfaces/Event.ts b/src/util/interfaces/Event.ts index 21c34c6c..16df48aa 100644 --- a/src/util/interfaces/Event.ts +++ b/src/util/interfaces/Event.ts @@ -42,6 +42,7 @@ import { UserPrivate, ReadyUserGuildSettingsEntries, ReadyPrivateChannel, + GuildOrUnavailable, } from "@spacebar/util"; export interface Event { @@ -73,7 +74,7 @@ export interface ReadyEventData { user: UserPrivate; private_channels: ReadyPrivateChannel[]; // this will be empty for bots session_id: string; // resuming - guilds: IReadyGuildDTO[]; + guilds: IReadyGuildDTO[] | GuildOrUnavailable[]; // depends on capability analytics_token?: string; connected_accounts?: ConnectedAccount[]; consents?: { |