mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
types(ApplicationCommandOptionData) changed options type (#6347)
* Changed ApplicationCommandOptionData interface The options type `this[]` as a self reference causes issues when implementing this interface. Changing this to ApplicationCommandOptionData[] fixes this issue https://imgur.com/a/0eVBoJU * fixed ApplicationCommandOption * Update typings/index.d.ts Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
3
typings/index.d.ts
vendored
3
typings/index.d.ts
vendored
@@ -2879,11 +2879,12 @@ export interface ApplicationCommandOptionData {
|
|||||||
description: string;
|
description: string;
|
||||||
required?: boolean;
|
required?: boolean;
|
||||||
choices?: ApplicationCommandOptionChoice[];
|
choices?: ApplicationCommandOptionChoice[];
|
||||||
options?: this[];
|
options?: ApplicationCommandOptionData[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApplicationCommandOption extends ApplicationCommandOptionData {
|
export interface ApplicationCommandOption extends ApplicationCommandOptionData {
|
||||||
type: ApplicationCommandOptionType;
|
type: ApplicationCommandOptionType;
|
||||||
|
options?: ApplicationCommandOption[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApplicationCommandOptionChoice {
|
export interface ApplicationCommandOptionChoice {
|
||||||
|
|||||||
Reference in New Issue
Block a user