Archived
added discord api types
This commit is contained in:
1 parent
c4b7dc3c44
commit
1938e4c12f
1 file changed
+24
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user