From b9f8d56cfe70f7bdc40f751253f942ad8b2c35c8 Mon Sep 17 00:00:00 2001 From: jacks0n9 Date: Thu, 2 Nov 2023 19:02:08 -0700 Subject: [PATCH] add subcommand support --- command_structs.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/command_structs.go b/command_structs.go index d3f23cf..3b05b73 100644 --- a/command_structs.go +++ b/command_structs.go @@ -31,9 +31,10 @@ type commandRunData struct { Options []CommandRunOption `json:"options"` } type CommandRunOption struct { - Type int `json:"type"` - Name string `json:"name"` - Value string `json:"value"` + Type int `json:"type"` + Name string `json:"name"` + Value string `json:"value"` + Options []CommandRunOption `json:"options"` } type CommandSearchResponse struct {