From 18cf4a514e644d039f18f55d4062318dbeb1c3f6 Mon Sep 17 00:00:00 2001 From: Nabil Ahmed <139159076+Nabil-249@users.noreply.github.com> Date: Fri, 3 Oct 2025 16:48:44 +0800 Subject: [PATCH] fix: Narrow thread-related properties for channels (#1377) --- deno/payloads/v10/channel.ts | 16 +++++++++------- deno/payloads/v9/channel.ts | 16 +++++++++------- payloads/v10/channel.ts | 16 +++++++++------- payloads/v9/channel.ts | 16 +++++++++------- 4 files changed, 36 insertions(+), 28 deletions(-) diff --git a/deno/payloads/v10/channel.ts b/deno/payloads/v10/channel.ts index b8230521..5533b5cc 100644 --- a/deno/payloads/v10/channel.ts +++ b/deno/payloads/v10/channel.ts @@ -127,10 +127,6 @@ export interface APIGuildChannel extends APIChannelBase; export type APINewsChannel = APIGuildTextChannel; -export interface APIGuildCategoryChannel extends APIGuildChannel, APISortableChannel {} +export interface APIGuildCategoryChannel extends APIGuildChannel, APISortableChannel { + parent_id?: null; +} export interface APIVoiceChannelBase extends APIGuildChannel, @@ -274,9 +272,9 @@ export interface APIThreadChannel; @@ -399,6 +397,10 @@ export interface APIThreadOnlyChannel { diff --git a/deno/payloads/v9/channel.ts b/deno/payloads/v9/channel.ts index 7bb214ba..a05e492d 100644 --- a/deno/payloads/v9/channel.ts +++ b/deno/payloads/v9/channel.ts @@ -127,10 +127,6 @@ export interface APIGuildChannel extends APIChannelBase; export type APINewsChannel = APIGuildTextChannel; -export interface APIGuildCategoryChannel extends APIGuildChannel, APISortableChannel {} +export interface APIGuildCategoryChannel extends APIGuildChannel, APISortableChannel { + parent_id?: null; +} export interface APIVoiceChannelBase extends APIGuildChannel, @@ -274,9 +272,9 @@ export interface APIThreadChannel; @@ -399,6 +397,10 @@ export interface APIThreadOnlyChannel { diff --git a/payloads/v10/channel.ts b/payloads/v10/channel.ts index 717518b0..19fe969f 100644 --- a/payloads/v10/channel.ts +++ b/payloads/v10/channel.ts @@ -127,10 +127,6 @@ export interface APIGuildChannel extends APIChannelBase; export type APINewsChannel = APIGuildTextChannel; -export interface APIGuildCategoryChannel extends APIGuildChannel, APISortableChannel {} +export interface APIGuildCategoryChannel extends APIGuildChannel, APISortableChannel { + parent_id?: null; +} export interface APIVoiceChannelBase extends APIGuildChannel, @@ -274,9 +272,9 @@ export interface APIThreadChannel; @@ -399,6 +397,10 @@ export interface APIThreadOnlyChannel { diff --git a/payloads/v9/channel.ts b/payloads/v9/channel.ts index 69db3fa9..c545bcb9 100644 --- a/payloads/v9/channel.ts +++ b/payloads/v9/channel.ts @@ -127,10 +127,6 @@ export interface APIGuildChannel extends APIChannelBase; export type APINewsChannel = APIGuildTextChannel; -export interface APIGuildCategoryChannel extends APIGuildChannel, APISortableChannel {} +export interface APIGuildCategoryChannel extends APIGuildChannel, APISortableChannel { + parent_id?: null; +} export interface APIVoiceChannelBase extends APIGuildChannel, @@ -274,9 +272,9 @@ export interface APIThreadChannel; @@ -399,6 +397,10 @@ export interface APIThreadOnlyChannel {