Documentation
¶
Index ¶
- func OnChannelDelete(b *bot.Bot) func(*discordgo.Session, *discordgo.ChannelDelete)
- func OnError(b *bot.Bot) func(*gumi.Ctx, error)
- func OnExecute(b *bot.Bot) func(*gumi.Ctx) error
- func OnGuildBanAdd(b *bot.Bot) func(*discordgo.Session, *discordgo.GuildBanAdd)
- func OnGuildCreate(b *bot.Bot) func(*discordgo.Session, *discordgo.GuildCreate)
- func OnGuildDelete(b *bot.Bot) func(*discordgo.Session, *discordgo.GuildDelete)
- func OnMessage(b *bot.Bot) func(*gumi.Ctx) error
- func OnMessageRemove(b *bot.Bot) func(*discordgo.Session, *discordgo.MessageDelete)
- func OnNSFW(*bot.Bot) func(*gumi.Ctx) error
- func OnNoPerms(*bot.Bot) func(*gumi.Ctx) error
- func OnPanic(b *bot.Bot) func(*gumi.Ctx, any)
- func OnRateLimit(*bot.Bot) func(*gumi.Ctx) error
- func OnReactionAdd(b *bot.Bot) func(*discordgo.Session, *discordgo.MessageReactionAdd)
- func OnReactionRemove(b *bot.Bot) func(*discordgo.Session, *discordgo.MessageReactionRemove)
- func OnReady(b *bot.Bot) func(*discordgo.Session, *discordgo.Ready)
- func PrefixResolver(b *bot.Bot) func(s *discordgo.Session, m *discordgo.MessageCreate) []string
- func RegisterHandlers(b *bot.Bot)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnChannelDelete ¶
func OnGuildBanAdd ¶
OnGuildBanAdd adds a banned server member to temporary banned users cache to prevent them from losing all their bookmarks on that server due to Discord removing all reactions of banned users.
func OnGuildCreate ¶
OnGuildCreate loads server configuration on launch and creates new database entries when joining a new server.
func OnGuildDelete ¶
OnGuildDelete logs guild outages and guilds that kicked the bot out.
func OnMessageRemove ¶
func OnNoPerms ¶
OnNoPerms creates a response for users who used a command without required permissions.
func OnRateLimit ¶
OnRateLimit creates a response for users who use bot's command too frequently
func OnReactionAdd ¶
func OnReactionRemove ¶
func PrefixResolver ¶
PrefixResolver returns an array of guild's prefixes and bot mentions.
func RegisterHandlers ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.