mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +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
@@ -66,7 +66,7 @@
|
||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||
"dependencies": {
|
||||
"@discordjs/util": "workspace:^",
|
||||
"discord-api-types": "^0.38.40",
|
||||
"discord-api-types": "^0.38.41",
|
||||
"ts-mixer": "^6.0.4",
|
||||
"tslib": "^2.8.1",
|
||||
"zod": "^4.3.6"
|
||||
|
||||
@@ -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