From a4aa724eb84ca0dea335b52c312af7a0e50696f6 Mon Sep 17 00:00:00 2001 From: Almeida Date: Thu, 19 Mar 2026 11:08:49 +0000 Subject: [PATCH] fix(Channel): correct PATCH channel field nullability (#1575) Co-authored-by: Claude Opus 4.6 (1M context) --- deno/rest/v10/channel.ts | 4 ++-- deno/rest/v9/channel.ts | 4 ++-- rest/v10/channel.ts | 4 ++-- rest/v9/channel.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deno/rest/v10/channel.ts b/deno/rest/v10/channel.ts index 2b40e978..4eadbcac 100644 --- a/deno/rest/v10/channel.ts +++ b/deno/rest/v10/channel.ts @@ -149,7 +149,7 @@ export interface RESTPatchAPIChannelJSONBody { * * Channel types: text, news, forum, media */ - default_auto_archive_duration?: ThreadAutoArchiveDuration | undefined; + default_auto_archive_duration?: ThreadAutoArchiveDuration | null | undefined; /** * Channel flags combined as a bit field. */ @@ -171,7 +171,7 @@ export interface RESTPatchAPIChannelJSONBody { * * Channel types: forum, media */ - default_reaction_emoji?: APIGuildForumDefaultReactionEmoji | undefined; + default_reaction_emoji?: APIGuildForumDefaultReactionEmoji | null | undefined; /** * The initial `rate_limit_per_user` to set on newly created threads in a channel. * This field is copied to the thread at creation time and does not live update diff --git a/deno/rest/v9/channel.ts b/deno/rest/v9/channel.ts index 12fa0f61..ec1eb897 100644 --- a/deno/rest/v9/channel.ts +++ b/deno/rest/v9/channel.ts @@ -149,7 +149,7 @@ export interface RESTPatchAPIChannelJSONBody { * * Channel types: text, news, forum, media */ - default_auto_archive_duration?: ThreadAutoArchiveDuration | undefined; + default_auto_archive_duration?: ThreadAutoArchiveDuration | null | undefined; /** * Channel flags combined as a bit field. */ @@ -171,7 +171,7 @@ export interface RESTPatchAPIChannelJSONBody { * * Channel types: forum, media */ - default_reaction_emoji?: APIGuildForumDefaultReactionEmoji | undefined; + default_reaction_emoji?: APIGuildForumDefaultReactionEmoji | null | undefined; /** * The initial `rate_limit_per_user` to set on newly created threads in a channel. * This field is copied to the thread at creation time and does not live update diff --git a/rest/v10/channel.ts b/rest/v10/channel.ts index 9345d626..1cb1a2b6 100644 --- a/rest/v10/channel.ts +++ b/rest/v10/channel.ts @@ -149,7 +149,7 @@ export interface RESTPatchAPIChannelJSONBody { * * Channel types: text, news, forum, media */ - default_auto_archive_duration?: ThreadAutoArchiveDuration | undefined; + default_auto_archive_duration?: ThreadAutoArchiveDuration | null | undefined; /** * Channel flags combined as a bit field. */ @@ -171,7 +171,7 @@ export interface RESTPatchAPIChannelJSONBody { * * Channel types: forum, media */ - default_reaction_emoji?: APIGuildForumDefaultReactionEmoji | undefined; + default_reaction_emoji?: APIGuildForumDefaultReactionEmoji | null | undefined; /** * The initial `rate_limit_per_user` to set on newly created threads in a channel. * This field is copied to the thread at creation time and does not live update diff --git a/rest/v9/channel.ts b/rest/v9/channel.ts index 141e3a13..6ca98eb0 100644 --- a/rest/v9/channel.ts +++ b/rest/v9/channel.ts @@ -149,7 +149,7 @@ export interface RESTPatchAPIChannelJSONBody { * * Channel types: text, news, forum, media */ - default_auto_archive_duration?: ThreadAutoArchiveDuration | undefined; + default_auto_archive_duration?: ThreadAutoArchiveDuration | null | undefined; /** * Channel flags combined as a bit field. */ @@ -171,7 +171,7 @@ export interface RESTPatchAPIChannelJSONBody { * * Channel types: forum, media */ - default_reaction_emoji?: APIGuildForumDefaultReactionEmoji | undefined; + default_reaction_emoji?: APIGuildForumDefaultReactionEmoji | null | undefined; /** * The initial `rate_limit_per_user` to set on newly created threads in a channel. * This field is copied to the thread at creation time and does not live update