diff --git a/src/types/api.ts b/src/types/api.ts new file mode 100644 index 0000000..3d8ae9a --- /dev/null +++ b/src/types/api.ts @@ -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; +}