Turn
&discordgo.ApplicationCommand{
Name: "echo",
Description: "echo",
Type: discordgo.ChatApplicationCommand,
Options: []*discordgo.ApplicationCommandOption{
{
Name: "text",
Description: "text",
Type: discordgo.ApplicationCommandOptionString,
},
},
}
into
"/echo text:string"
'nuff said.