File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff 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 ] ;
You can’t perform that action at this time.
0 commit comments