Documentation ¶
Index ¶
- type HiveCommand
- func (h *HiveCommand) CreateVoiceChannel(s *discordgo.Session, conf *db.HiveConfiguration, name, catID, guildID string, ...) (*discordgo.Channel, error)
- func (h *HiveCommand) HiveCommand(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (h *HiveCommand) Info() []command.Command
- func (h *HiveCommand) InstallSlashCommands(session *discordgo.Session) error
- func (h *HiveCommand) Register(registry command.Registry, server command.Server)
- func (h *HiveCommand) SayArchive(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (h *HiveCommand) SayAttendance(s *discordgo.Session, m *discordgo.MessageCreate)
- func (h *HiveCommand) SayLeave(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (h *HiveCommand) SayVerify(s *discordgo.Session, m *discordgo.MessageCreate)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HiveCommand ¶
type HiveCommand struct {
// contains filtered or unexported fields
}
HiveCommand contains the handlers for the Hive commandos
func NewHiveCommand ¶
func NewHiveCommand(dbConn db.Database) *HiveCommand
NewHiveCommand gives a new HiveCommand
func (*HiveCommand) CreateVoiceChannel ¶
func (*HiveCommand) HiveCommand ¶
func (h *HiveCommand) HiveCommand(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*HiveCommand) Info ¶
func (h *HiveCommand) Info() []command.Command
Info return the commands in this package
func (*HiveCommand) InstallSlashCommands ¶
func (h *HiveCommand) InstallSlashCommands(session *discordgo.Session) error
InstallSlashCommands registers the slash commands handlers
func (*HiveCommand) Register ¶
func (h *HiveCommand) Register(registry command.Registry, server command.Server)
Register registers the handlers
func (*HiveCommand) SayArchive ¶
func (h *HiveCommand) SayArchive(s *discordgo.Session, i *discordgo.InteractionCreate)
SayArchive handles the archive command
func (*HiveCommand) SayAttendance ¶
func (h *HiveCommand) SayAttendance(s *discordgo.Session, m *discordgo.MessageCreate)
SayAttendance handles the tm!attendance command
func (*HiveCommand) SayLeave ¶
func (h *HiveCommand) SayLeave(s *discordgo.Session, i *discordgo.InteractionCreate)
SayLeave handles the tm!eave command
func (*HiveCommand) SayVerify ¶
func (h *HiveCommand) SayVerify(s *discordgo.Session, m *discordgo.MessageCreate)
SayVerify handles the tm!verify command
Click to show internal directories.
Click to hide internal directories.