fix: allow DM channels on ChannelOption channel_type (#1769)

This commit is contained in:
Qjuh
2026-08-28 01:14:11 +03:00
committed by GitHub
parent 5e3322b272
commit 4a8528677f
4 changed files with 4 additions and 10 deletions
+1 -4
View File
@@ -75,10 +75,7 @@ export type TextChannelType =
export type GuildChannelType = Exclude<ChannelType, ChannelType.DM | ChannelType.GroupDM>;
export type ApplicationCommandOptionAllowedChannelType = Exclude<
ChannelType,
ChannelType.DM | ChannelType.GroupDM | ChannelType.GuildDirectory
>;
export type ApplicationCommandOptionAllowedChannelType = Exclude<ChannelType, ChannelType.GuildDirectory>;
export interface APISlowmodeChannel<T extends ChannelType> extends APIChannelBase<T> {
/**
@@ -4,7 +4,7 @@ import type { APIApplicationCommandOptionBase, APIInteractionDataOptionBase } fr
import type { ApplicationCommandOptionType } from './shared.ts';
export interface APIApplicationCommandChannelOption extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.Channel> {
channel_types?: Exclude<ChannelType, ChannelType.DM | ChannelType.GroupDM | ChannelType.GuildDirectory>[];
channel_types?: Exclude<ChannelType, ChannelType.GuildDirectory>[];
}
export type APIApplicationCommandInteractionDataChannelOption = APIInteractionDataOptionBase<
+1 -4
View File
@@ -75,10 +75,7 @@ export type TextChannelType =
export type GuildChannelType = Exclude<ChannelType, ChannelType.DM | ChannelType.GroupDM>;
export type ApplicationCommandOptionAllowedChannelType = Exclude<
ChannelType,
ChannelType.DM | ChannelType.GroupDM | ChannelType.GuildDirectory
>;
export type ApplicationCommandOptionAllowedChannelType = Exclude<ChannelType, ChannelType.GuildDirectory>;
export interface APISlowmodeChannel<T extends ChannelType> extends APIChannelBase<T> {
/**
@@ -4,7 +4,7 @@ import type { APIApplicationCommandOptionBase, APIInteractionDataOptionBase } fr
import type { ApplicationCommandOptionType } from './shared';
export interface APIApplicationCommandChannelOption extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.Channel> {
channel_types?: Exclude<ChannelType, ChannelType.DM | ChannelType.GroupDM | ChannelType.GuildDirectory>[];
channel_types?: Exclude<ChannelType, ChannelType.GuildDirectory>[];
}
export type APIApplicationCommandInteractionDataChannelOption = APIInteractionDataOptionBase<