Documentation
¶
Index ¶
- func AboutCommand(s *discordgo.Session, i *discordgo.InteractionCreate)
- func LoadDatabase() *bolt.DB
- func OnGuildChannelCreateHandler(b *Bot) func(*discordgo.Session, *discordgo.ChannelCreate)
- func RollDiceCommand(s *discordgo.Session, i *discordgo.InteractionCreate)
- func SetDatabasePath(path string)
- type Bot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AboutCommand ¶
func AboutCommand(s *discordgo.Session, i *discordgo.InteractionCreate)
AboutCommand shows an about embed for the bot
func LoadDatabase ¶
func OnGuildChannelCreateHandler ¶
func OnGuildChannelCreateHandler(b *Bot) func(*discordgo.Session, *discordgo.ChannelCreate)
OnGuildChannelCreateHandler is another specific use-case handler function that invalidates the bot's channel ID cache if the channel in the cache is deleted
func RollDiceCommand ¶
func RollDiceCommand(s *discordgo.Session, i *discordgo.InteractionCreate)
RollDiceCommand rolls an RPG dice query string
func SetDatabasePath ¶
func SetDatabasePath(path string)
Types ¶
Click to show internal directories.
Click to hide internal directories.