From 258fb72f38c0513030dc5e1ae60e34fc3f83006d Mon Sep 17 00:00:00 2001 From: Danial Raza Date: Thu, 5 Sep 2024 22:24:48 +0200 Subject: [PATCH] fix(GatewayGuildDeleteDispatchData): make `unavailable` optional (#1092) --- deno/gateway/v10.ts | 9 ++++++++- deno/gateway/v9.ts | 9 ++++++++- gateway/v10.ts | 9 ++++++++- gateway/v9.ts | 9 ++++++++- 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/deno/gateway/v10.ts b/deno/gateway/v10.ts index 07c60fb1..54247ca2 100644 --- a/deno/gateway/v10.ts +++ b/deno/gateway/v10.ts @@ -859,7 +859,14 @@ export type GatewayGuildDeleteDispatch = DataPayload { + /** + * `true` if this guild is unavailable due to an outage + * + * If the field is not set, the user was removed from the guild. + */ + unavailable?: true; +} /** * https://discord.com/developers/docs/topics/gateway-events#guild-ban-add diff --git a/deno/gateway/v9.ts b/deno/gateway/v9.ts index d8892769..ece65f93 100644 --- a/deno/gateway/v9.ts +++ b/deno/gateway/v9.ts @@ -858,7 +858,14 @@ export type GatewayGuildDeleteDispatch = DataPayload { + /** + * `true` if this guild is unavailable due to an outage + * + * If the field is not set, the user was removed from the guild. + */ + unavailable?: true; +} /** * https://discord.com/developers/docs/topics/gateway-events#guild-ban-add diff --git a/gateway/v10.ts b/gateway/v10.ts index 130775d6..b4bda37e 100644 --- a/gateway/v10.ts +++ b/gateway/v10.ts @@ -859,7 +859,14 @@ export type GatewayGuildDeleteDispatch = DataPayload { + /** + * `true` if this guild is unavailable due to an outage + * + * If the field is not set, the user was removed from the guild. + */ + unavailable?: true; +} /** * https://discord.com/developers/docs/topics/gateway-events#guild-ban-add diff --git a/gateway/v9.ts b/gateway/v9.ts index b276157f..70e8cbc9 100644 --- a/gateway/v9.ts +++ b/gateway/v9.ts @@ -858,7 +858,14 @@ export type GatewayGuildDeleteDispatch = DataPayload { + /** + * `true` if this guild is unavailable due to an outage + * + * If the field is not set, the user was removed from the guild. + */ + unavailable?: true; +} /** * https://discord.com/developers/docs/topics/gateway-events#guild-ban-add