From 25778aeee9367c145fa841c977d4de6b247652c0 Mon Sep 17 00:00:00 2001 From: Almeida Date: Fri, 20 Mar 2026 10:06:44 +0000 Subject: [PATCH] fix(webhook): correct nullability for guild_id and channel_id (#1567) Co-authored-by: Claude Opus 4.6 (1M context) Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> --- deno/payloads/v10/webhook.ts | 4 ++-- deno/payloads/v9/webhook.ts | 4 ++-- payloads/v10/webhook.ts | 4 ++-- payloads/v9/webhook.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deno/payloads/v10/webhook.ts b/deno/payloads/v10/webhook.ts index 5bc2d0be..f9003b15 100644 --- a/deno/payloads/v10/webhook.ts +++ b/deno/payloads/v10/webhook.ts @@ -30,11 +30,11 @@ export interface APIWebhook { /** * The guild id this webhook is for */ - guild_id?: Snowflake; + guild_id?: Snowflake | null; /** * The channel id this webhook is for */ - channel_id: Snowflake; + channel_id: Snowflake | null; /** * The user this webhook was created by (not returned when getting a webhook with its token) * diff --git a/deno/payloads/v9/webhook.ts b/deno/payloads/v9/webhook.ts index 5bc2d0be..f9003b15 100644 --- a/deno/payloads/v9/webhook.ts +++ b/deno/payloads/v9/webhook.ts @@ -30,11 +30,11 @@ export interface APIWebhook { /** * The guild id this webhook is for */ - guild_id?: Snowflake; + guild_id?: Snowflake | null; /** * The channel id this webhook is for */ - channel_id: Snowflake; + channel_id: Snowflake | null; /** * The user this webhook was created by (not returned when getting a webhook with its token) * diff --git a/payloads/v10/webhook.ts b/payloads/v10/webhook.ts index 14fa886a..26dc436c 100644 --- a/payloads/v10/webhook.ts +++ b/payloads/v10/webhook.ts @@ -30,11 +30,11 @@ export interface APIWebhook { /** * The guild id this webhook is for */ - guild_id?: Snowflake; + guild_id?: Snowflake | null; /** * The channel id this webhook is for */ - channel_id: Snowflake; + channel_id: Snowflake | null; /** * The user this webhook was created by (not returned when getting a webhook with its token) * diff --git a/payloads/v9/webhook.ts b/payloads/v9/webhook.ts index 14fa886a..26dc436c 100644 --- a/payloads/v9/webhook.ts +++ b/payloads/v9/webhook.ts @@ -30,11 +30,11 @@ export interface APIWebhook { /** * The guild id this webhook is for */ - guild_id?: Snowflake; + guild_id?: Snowflake | null; /** * The channel id this webhook is for */ - channel_id: Snowflake; + channel_id: Snowflake | null; /** * The user this webhook was created by (not returned when getting a webhook with its token) *