added discord api types

This commit is contained in:
mmacierzanka committed 2021-09-05 16:43:02 +02:00
1 parent c4b7dc3c44
commit 1938e4c12f
1 file changed
+24
+24
View File
@@ -0,0 +1,24 @@
export interface BaseCommandObject {
name: string;
type: number;
default_permissions: true;
}
export interface TextCommandObject extends BaseCommandObject {
description: string;
options?: TextCommandOptionObject[];
}
export interface TextCommandOptionObject {
name: string;
description: string;
type: number;
required?: boolean;
choices?: TextCommandOptionChoiceObject[];
options?: TextCommandOptionObject[];
}
export interface TextCommandOptionChoiceObject {
name: string;
value: string;
}