mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
refactor!: remove builders and formatters re-export (#11361)
BREAKING CHANGE: removed builders and formatters re-export
This commit is contained in:
committed by
GitHub
parent
52173b6ca8
commit
84b85f4c91
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user