2021-02-11 20:44:26 +01:00
|
|
|
export interface ApplicationCommand {
|
2021-04-06 18:01:49 +02:00
|
|
|
id: string;
|
|
|
|
application_id: string;
|
2021-02-11 20:44:26 +01:00
|
|
|
name: string;
|
|
|
|
description: string;
|
|
|
|
options?: ApplicationCommandOption[];
|
|
|
|
}
|
|
|
|
export interface ApplicationCommandOption {
|
|
|
|
type: ApplicationCommandOptionType;
|
|
|
|
name: string;
|
|
|
|
description: string;
|
|
|
|
required?: boolean;
|
|
|
|
choices?: ApplicationCommandOptionChoice[];
|
|
|
|
options?: ApplicationCommandOption[];
|
|
|
|
}
|
|
|
|
export interface ApplicationCommandOptionChoice {
|
|
|
|
name: string;
|
|
|
|
value: string | number;
|
|
|
|
}
|
|
|
|
export declare enum ApplicationCommandOptionType {
|
|
|
|
SUB_COMMAND = 1,
|
|
|
|
SUB_COMMAND_GROUP = 2,
|
|
|
|
STRING = 3,
|
|
|
|
INTEGER = 4,
|
|
|
|
BOOLEAN = 5,
|
|
|
|
USER = 6,
|
|
|
|
CHANNEL = 7,
|
|
|
|
ROLE = 8
|
|
|
|
}
|
|
|
|
export interface ApplicationCommandInteractionData {
|
2021-04-06 18:01:49 +02:00
|
|
|
id: string;
|
2021-02-11 20:44:26 +01:00
|
|
|
name: string;
|
|
|
|
options?: ApplicationCommandInteractionDataOption[];
|
|
|
|
}
|
|
|
|
export interface ApplicationCommandInteractionDataOption {
|
|
|
|
name: string;
|
|
|
|
value?: any;
|
|
|
|
options?: ApplicationCommandInteractionDataOption[];
|
|
|
|
}
|