From 4a8528677f693c0b2c8eadd8e076b52efa8688c6 Mon Sep 17 00:00:00 2001 From: Qjuh <76154676+Qjuh@users.noreply.github.com> Date: Fri, 28 Aug 2026 00:14:11 +0200 Subject: [PATCH] fix: allow DM channels on ChannelOption channel_type (#1769) --- deno/payloads/v10/channel.ts | 5 +---- .../_interactions/_applicationCommands/_chatInput/channel.ts | 2 +- payloads/v10/channel.ts | 5 +---- .../_interactions/_applicationCommands/_chatInput/channel.ts | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/deno/payloads/v10/channel.ts b/deno/payloads/v10/channel.ts index 86a8bcc4..1b01f15b 100644 --- a/deno/payloads/v10/channel.ts +++ b/deno/payloads/v10/channel.ts @@ -75,10 +75,7 @@ export type TextChannelType = export type GuildChannelType = Exclude; -export type ApplicationCommandOptionAllowedChannelType = Exclude< - ChannelType, - ChannelType.DM | ChannelType.GroupDM | ChannelType.GuildDirectory ->; +export type ApplicationCommandOptionAllowedChannelType = Exclude; export interface APISlowmodeChannel extends APIChannelBase { /** diff --git a/deno/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.ts b/deno/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.ts index 85058815..40a8a26c 100644 --- a/deno/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.ts +++ b/deno/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.ts @@ -4,7 +4,7 @@ import type { APIApplicationCommandOptionBase, APIInteractionDataOptionBase } fr import type { ApplicationCommandOptionType } from './shared.ts'; export interface APIApplicationCommandChannelOption extends APIApplicationCommandOptionBase { - channel_types?: Exclude[]; + channel_types?: Exclude[]; } export type APIApplicationCommandInteractionDataChannelOption = APIInteractionDataOptionBase< diff --git a/payloads/v10/channel.ts b/payloads/v10/channel.ts index 1855f34f..0067a5fe 100644 --- a/payloads/v10/channel.ts +++ b/payloads/v10/channel.ts @@ -75,10 +75,7 @@ export type TextChannelType = export type GuildChannelType = Exclude; -export type ApplicationCommandOptionAllowedChannelType = Exclude< - ChannelType, - ChannelType.DM | ChannelType.GroupDM | ChannelType.GuildDirectory ->; +export type ApplicationCommandOptionAllowedChannelType = Exclude; export interface APISlowmodeChannel extends APIChannelBase { /** diff --git a/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.ts b/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.ts index 048a0e63..72e855f1 100644 --- a/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.ts +++ b/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.ts @@ -4,7 +4,7 @@ import type { APIApplicationCommandOptionBase, APIInteractionDataOptionBase } fr import type { ApplicationCommandOptionType } from './shared'; export interface APIApplicationCommandChannelOption extends APIApplicationCommandOptionBase { - channel_types?: Exclude[]; + channel_types?: Exclude[]; } export type APIApplicationCommandInteractionDataChannelOption = APIInteractionDataOptionBase<