events

package
v1.12.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitEvents

func InitEvents(s *discordgo.Session, database *sql.DB)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL