@@ -258,6 +258,7 @@ declare module 'gcommands' {
258258 public description : String ;
259259 public type : String ;
260260 public prompt : String ;
261+ public channelTypes : Array < ArgumentChannelTypes > ;
261262 public required : Boolean ;
262263 public choices : Array ;
263264 public options : Array < CommandArgsOption > ;
@@ -267,6 +268,7 @@ declare module 'gcommands' {
267268 public setType ( type : String ) : CommandArgsOptionBuilder ;
268269 public setPrompt ( prompt : String ) : CommandArgsOptionBuilder ;
269270 public setRequired ( required : Boolean ) : CommandArgsOptionBuilder ;
271+ public setChannelTypes ( channelTypes : Array < ArgumentChannelTypes > ) : CommandArgsOptionBuilder ;
270272 public addChoice ( choice : CommandArgsChoice ) : CommandArgsOptionBuilder ;
271273 public addChoices ( choices : Array < CommandArgsChoice > ) : CommandArgsOptionBuilder ;
272274 public addOption ( option : CommandArgsOption ) : CommandArgsOptionBuilder ;
@@ -527,6 +529,7 @@ declare module 'gcommands' {
527529 required ?: boolean ;
528530 choices ?: CommandArgsChoice [ ] ;
529531 options ?: CommandArgsOptions ;
532+ channel_types ?: ArgumentChannelTypes [ ] ;
530533 }
531534
532535 interface CommandArgsChoice {
@@ -535,7 +538,7 @@ declare module 'gcommands' {
535538 }
536539
537540 interface GPayloadOptions {
538- content : [ string | MessageEmbed ] ;
541+ content : [ string | object | MessageEmbed | MessageAttachment ] ;
539542 embeds ?: [ MessageEmbed ] ;
540543 components ?: [ MessageActionRow ] ;
541544 attachments ?: [ MessageAttachment | MessageAttachment [ ] ] ;
@@ -583,6 +586,7 @@ declare module 'gcommands' {
583586
584587 type GCommandsOptionsCommandsSlash = 'both' | 'slash' | 'message' | 'false' ;
585588 type GCommandsOptionsCommandsContext = 'both' | 'user' | 'message' | 'false' ;
589+ type ArgumentChannelTypes = 'DM' | 'GUILD_TEXT' | 'GUILD_VOICE' | 'GUILD_CATEGORY' | 'GUILD_NEWS' | 'GUILD_STORE' | 'GUILD_NEWS_THREAD' | 'GUILD_PUBLIC_THREAD' | 'GUILD_PRIVATE_THREAD' | 'GUILD_STAGE_VOICE' ;
586590
587591 interface EventOptions {
588592 name : string ;
0 commit comments