Register Commands
// while bot is starting
//..
var Commands = []*discordgo.ApplicationCommand{
{
Name: "ping",
Description: "Pong!",
Options: []*discordgo.ApplicationCommandOption{
{
Type: discordgo.ApplicationCommandOptionString,
Name: "option",
Description: "Test Option!",
Required: true
},
},
}
_, err := s.ApplicationCommandBulkOverwrite(s.State.User.ID, "", Commands)
if err != nil {
panic(err)
return
}Per Guild:
Last updated