Documentation
¶
Index ¶
- func InitEvents(s *discordgo.Session, database *sql.DB)
- func RegisterAuditLogCreateFunctions(funcmap []func(g *discordgo.GuildAuditLogEntryCreate))
- func RegisterChannelCreatefunctions(funcMap []func(g *discordgo.ChannelCreate))
- func RegisterChannelDeletefunctions(funcMap []func(g *discordgo.ChannelDelete))
- func RegisterChannelUpdatefunctions(funcMap []func(g *discordgo.ChannelUpdate))
- func RegisterGuildJoinfunctions(funcMap []func(g *discordgo.GuildCreate))
- func RegisterGuildLeavefunctions(funcMap []func(g *discordgo.GuildDelete))
- func RegisterGuildMemberJoinfunctions(funcMap []func(g *discordgo.GuildMemberAdd))
- func RegisterGuildMemberLeavefunctions(funcMap []func(g *discordgo.GuildMemberRemove))
- func RegisterGuildRoleCreatefunctions(funcMap []func(g *discordgo.GuildRoleCreate))
- func RegisterGuildRoleDeletefunctions(funcMap []func(g *discordgo.GuildRoleDelete))
- func RegisterGuildRoleUpdatefunctions(funcMap []func(g *discordgo.GuildRoleUpdate))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitEvents ¶
InitEvents registers the required event handlers to pass data to the bot
func RegisterAuditLogCreateFunctions ¶ added in v1.12.0
func RegisterAuditLogCreateFunctions(funcmap []func(g *discordgo.GuildAuditLogEntryCreate))
func RegisterChannelCreatefunctions ¶
func RegisterChannelCreatefunctions(funcMap []func(g *discordgo.ChannelCreate))
RegisterChannelCreatefunctions adds each guild channel create function to the map of functions ran when a guild creates a channel
func RegisterChannelDeletefunctions ¶
func RegisterChannelDeletefunctions(funcMap []func(g *discordgo.ChannelDelete))
RegisterChannelDeletefunctions adds each guild channel delete function to the map of functions ran when a guild deletes a channel
func RegisterChannelUpdatefunctions ¶
func RegisterChannelUpdatefunctions(funcMap []func(g *discordgo.ChannelUpdate))
RegisterChannelUpdatefunctions adds each guild channel update function to the map of functions ran when a guild updates a channel
func RegisterGuildJoinfunctions ¶
func RegisterGuildJoinfunctions(funcMap []func(g *discordgo.GuildCreate))
RegisterGuildJoinfunctions adds each guild join function to the map of functions ran when a guild adds the bot
func RegisterGuildLeavefunctions ¶
func RegisterGuildLeavefunctions(funcMap []func(g *discordgo.GuildDelete))
RegisterGuildJoinfunctions adds each guild join function to the map of functions ran when a guild adds the bot
func RegisterGuildMemberJoinfunctions ¶
func RegisterGuildMemberJoinfunctions(funcMap []func(g *discordgo.GuildMemberAdd))
RegisterGuildMemberJoinfunctions adds each guild member join function to the map of functions ran when a user joins a guild the bot is on
func RegisterGuildMemberLeavefunctions ¶
func RegisterGuildMemberLeavefunctions(funcMap []func(g *discordgo.GuildMemberRemove))
RegisterGuildMemberLeavefunctions adds each guild member leave function to the map of functions ran when a user leaves a guild the bot is on
func RegisterGuildRoleCreatefunctions ¶
func RegisterGuildRoleCreatefunctions(funcMap []func(g *discordgo.GuildRoleCreate))
RegisterGuildRoleCreatefunctions adds each guild role create function to the map of functions ran when a guild creates a role
func RegisterGuildRoleDeletefunctions ¶
func RegisterGuildRoleDeletefunctions(funcMap []func(g *discordgo.GuildRoleDelete))
RegisterGuildRoleDeletefunctions adds each guild role delete function to the map of functions ran when a guild deletes a role
func RegisterGuildRoleUpdatefunctions ¶
func RegisterGuildRoleUpdatefunctions(funcMap []func(g *discordgo.GuildRoleUpdate))
RegisterGuildRoleUpdatefunctions adds each guild role update function to the map of functions ran when a guild updates a role
Types ¶
This section is empty.