summary refs log tree commit diff
path: root/dist/models/Application.d.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-11 20:44:26 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-11 20:44:26 +0100
commit673e691c6e26a0abbadb93cf8ef4b1e45ad1accc (patch)
tree8496623a70f192e4e88ec487e38e0f6c284dc883 /dist/models/Application.d.ts
parent:sparkles: updated other models (diff)
downloadserver-673e691c6e26a0abbadb93cf8ef4b1e45ad1accc.tar.xz
:wrench: build
Diffstat (limited to 'dist/models/Application.d.ts')
-rw-r--r--dist/models/Application.d.ts39
1 files changed, 39 insertions, 0 deletions
diff --git a/dist/models/Application.d.ts b/dist/models/Application.d.ts
new file mode 100644

index 00000000..53483c49 --- /dev/null +++ b/dist/models/Application.d.ts
@@ -0,0 +1,39 @@ +export interface ApplicationCommand { + id: bigint; + application_id: bigint; + 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 { + id: bigint; + name: string; + options?: ApplicationCommandInteractionDataOption[]; +} +export interface ApplicationCommandInteractionDataOption { + name: string; + value?: any; + options?: ApplicationCommandInteractionDataOption[]; +}