Documentation
¶
Index ¶
- Variables
- func CoursCommandHandler() func(s *discordgo.Session, i *discordgo.InteractionCreate)
- func GetCommandHandlers() map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate)
- func GetCommands() []*discordgo.ApplicationCommand
- func KarmaCommandHandler() func(s *discordgo.Session, i *discordgo.InteractionCreate)
- func VersionCommand() func(s *discordgo.Session, i *discordgo.InteractionCreate)
Constants ¶
This section is empty.
Variables ¶
View Source
var CoursCommand = discordgo.ApplicationCommand{ Name: "cours", Description: "Cours command", Options: []*discordgo.ApplicationCommandOption{ { Name: "add", Description: "add cours to an user", Type: discordgo.ApplicationCommandOptionSubCommand, Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionUser, Name: "user-option", Description: "User option", Required: true, }, { Type: discordgo.ApplicationCommandOptionInteger, Name: "number-option", Description: "Number option", Required: true, }, }, }, { Name: "show", Description: "show cours", Type: discordgo.ApplicationCommandOptionSubCommand, Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionUser, Name: "user-option", Description: "User option", Required: false, }, }, }, { Name: "help", Description: "help", Type: discordgo.ApplicationCommandOptionSubCommand, }, { Name: "remove", Description: "remove cours", Type: discordgo.ApplicationCommandOptionSubCommand, Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionUser, Name: "user-option", Description: "User option", Required: true, }, { Type: discordgo.ApplicationCommandOptionInteger, Name: "number-option", Description: "Number option", Required: true, }, }, }, { Name: "remove-channel", Description: "remove cours channel", Type: discordgo.ApplicationCommandOptionSubCommand, Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionChannel, Name: "channel-option", Description: "Channel option", Required: true, }, }, }, }, }
View Source
var KarmaCommand = discordgo.ApplicationCommand{ Name: "karma", Description: "Karma main command", Options: []*discordgo.ApplicationCommandOption{ { Name: "add", Description: "add karma", Type: discordgo.ApplicationCommandOptionSubCommand, Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionUser, Name: "user-option", Description: "User option", Required: true, }, }, }, { Name: "show", Description: "show karma", Type: discordgo.ApplicationCommandOptionSubCommand, Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionUser, Name: "user-option", Description: "User option", Required: false, }, }, }, { Name: "help", Description: "help", Type: discordgo.ApplicationCommandOptionSubCommand, }, }, }
Functions ¶
func CoursCommandHandler ¶
func CoursCommandHandler() func(s *discordgo.Session, i *discordgo.InteractionCreate)
func GetCommandHandlers ¶
func GetCommandHandlers() map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate)
func GetCommands ¶
func GetCommands() []*discordgo.ApplicationCommand
func KarmaCommandHandler ¶
func KarmaCommandHandler() func(s *discordgo.Session, i *discordgo.InteractionCreate)
func VersionCommand ¶
func VersionCommand() func(s *discordgo.Session, i *discordgo.InteractionCreate)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.