Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collection ¶
type Plugin ¶
type Plugin[T any] struct { // Plugin name. Name string // Plugin type. Type PluginType // Handler is the function that will be called for the differents plugins Handler func(*discordgo.Session, T) // Discord interaction Interaction func(*discordgo.Session, *discordgo.InteractionCreate) }
Plugin represents a plugin for the bot.
type PluginHandler ¶
type PluginHandler interface { AddHandler(interface{}) func() AddHandlerOnce(interface{}) func() }
PluginHandler represents the structs that will be used to handle the plugins. Like discordgo.Session.
Click to show internal directories.
Click to hide internal directories.