Skip to content

Commit a2c8208

Browse files
committed
typing for command args
1 parent 9109bab commit a2c8208

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

typings/index.d.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ declare module 'gcommands' {
412412
public contextMenuName: string;
413413
public description: string;
414414
public cooldown: string;
415-
public args: Array<object>;
415+
public args: Array<CommandArgsOptions>;
416416
public alwaysObtain: boolean;
417417
public clientRequiredPermissions: String | Array<string>;
418418
public userRequiredPermissions: String | Array<string>;
@@ -519,6 +519,21 @@ declare module 'gcommands' {
519519
followUp(options: string | GPayloadOptions): void;
520520
}
521521

522+
interface CommandArgsOptions {
523+
name: string;
524+
description: string;
525+
type: ArgumentType;
526+
prompt?: string;
527+
required?: boolean;
528+
choices?: CommandArgsChoice[];
529+
options?: CommandArgsOptions;
530+
}
531+
532+
interface CommandArgsChoice {
533+
name: string;
534+
value: string;
535+
}
536+
522537
interface GPayloadOptions {
523538
content: [string | MessageEmbed];
524539
embeds?: [MessageEmbed];

0 commit comments

Comments
 (0)