kleincordBot/commands.go

39 lines
847 B
Go
Raw Normal View History

package main
import "github.com/bwmarrin/discordgo"
var commands = []*discordgo.ApplicationCommand{
{
Name: "test1",
Description: "Showcase of a basic slash command",
},
{
Name: "init",
Description: "init things",
},
{
Name: "read_back",
Description: "Showcase of a basic slash command2",
Options: []*discordgo.ApplicationCommandOption{
{
Type: discordgo.ApplicationCommandOptionString,
Name: "text",
Description: "text to read back",
Required: true,
},
},
},
{
Name: "delete",
Description: "delete x amount recent messages in this channel",
Options: []*discordgo.ApplicationCommandOption{
{
Type: discordgo.ApplicationCommandOptionString,
Name: "amount",
Description: "max 100",
Required: true,
},
},
},
}