mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
types: change type of ApplicationCommandSubCommand.options (#8476)
* types: change type of ApplicationCommandSubCommand.options * types: change type of ApplicationCommandSubCommand.options * Update packages/discord.js/typings/index.d.ts Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com> Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
This commit is contained in:
14
packages/discord.js/typings/index.d.ts
vendored
14
packages/discord.js/typings/index.d.ts
vendored
@@ -3907,7 +3907,19 @@ export interface ApplicationCommandSubCommandData extends Omit<BaseApplicationCo
|
||||
|
||||
export interface ApplicationCommandSubCommand extends Omit<BaseApplicationCommandOptionsData, 'required'> {
|
||||
type: ApplicationCommandOptionType.Subcommand;
|
||||
options?: (ApplicationCommandChoicesOption | ApplicationCommandNonOptions | ApplicationCommandChannelOption)[];
|
||||
options?: (
|
||||
| ApplicationCommandNonOptions
|
||||
| ApplicationCommandChannelOption
|
||||
| ApplicationCommandChoicesOption
|
||||
| ApplicationCommandAutocompleteOption
|
||||
| ApplicationCommandNumericOption
|
||||
| ApplicationCommandStringOption
|
||||
| ApplicationCommandRoleOption
|
||||
| ApplicationCommandUserOption
|
||||
| ApplicationCommandMentionableOption
|
||||
| ApplicationCommandBooleanOption
|
||||
| ApplicationCommandAttachmentOption
|
||||
)[];
|
||||
}
|
||||
|
||||
export interface ApplicationCommandNonOptionsData extends BaseApplicationCommandOptionsData {
|
||||
|
||||
Reference in New Issue
Block a user