kleincordBot/commands/commands.go

49 lines
1.0 KiB
Go
Raw Normal View History

2024-05-03 21:25:42 +02:00
package commands
import "github.com/bwmarrin/discordgo"
2024-05-03 21:25:42 +02:00
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,
},
2024-05-03 18:07:31 +02:00
{
Type: discordgo.ApplicationCommandOptionString,
Name: "webhook_only",
Description: "bool",
Required: true,
},
},
},
{
Name: "stop",
Description: "stop bot",
},
}