refactor!: remove builders and formatters re-export (#11361)

BREAKING CHANGE: removed builders and formatters re-export
This commit is contained in:
Denis-Adrian Cristea
2026-03-07 12:25:00 +02:00
committed by GitHub
parent 52173b6ca8
commit 84b85f4c91
15 changed files with 70 additions and 72 deletions

View File

@@ -1,4 +1,8 @@
import { ChannelType, type APIApplicationCommandChannelOption } from 'discord-api-types/v10';
import {
type ApplicationCommandOptionAllowedChannelType,
type APIApplicationCommandChannelOption,
ChannelType,
} from 'discord-api-types/v10';
import { normalizeArray, type RestOrArray } from '../../../../util/normalizeArray';
export const ApplicationCommandOptionAllowedChannelTypes = [
@@ -12,12 +16,7 @@ export const ApplicationCommandOptionAllowedChannelTypes = [
ChannelType.GuildStageVoice,
ChannelType.GuildForum,
ChannelType.GuildMedia,
] as const;
/**
* Allowed channel types used for a channel option.
*/
export type ApplicationCommandOptionAllowedChannelType = (typeof ApplicationCommandOptionAllowedChannelTypes)[number];
] as const satisfies readonly ApplicationCommandOptionAllowedChannelType[];
export interface ApplicationCommandOptionChannelTypesData extends Pick<
APIApplicationCommandChannelOption,