fix(webhook): correct nullability for guild_id and channel_id (#1567)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
This commit is contained in:
Almeida
2026-03-20 10:06:44 +00:00
committed by GitHub
parent 899544f379
commit 25778aeee9
4 changed files with 8 additions and 8 deletions

View File

@@ -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)
*

View File

@@ -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)
*

View File

@@ -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)
*

View File

@@ -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)
*