summary refs log tree commit diff
path: root/src/util/interfaces/Event.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-03 23:50:48 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-03 23:50:48 +1000
commit6ee26082efddfa4f996b4b0424a664a6a592501c (patch)
treeda69812661ebe48cac1240482cbeedd7082d2317 /src/util/interfaces/Event.ts
parentallow all role props through ready (diff)
downloadserver-6ee26082efddfa4f996b4b0424a664a6a592501c.tar.xz
Respect CLIENT_STATE_V2 capability
Diffstat (limited to '')
-rw-r--r--src/util/interfaces/Event.ts3
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?: {