Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GuildManager ¶
type GuildManager struct { Session *discordgo.Session Bots map[string]map[string]botsdef.Discord // contains filtered or unexported fields }
func NewGuildManager ¶
func NewGuildManager(session *discordgo.Session, bots map[string]map[string]botsdef.Discord) *GuildManager
NewGuildManager creates a new GuildManager with the given discord session and bot instances.
Parameters: - session: *discordgo.Session - botInstances: map[string]*discord.BotInstance Return type: *GuildManager
func (*GuildManager) Commands ¶
func (gm *GuildManager) Commands(s *discordgo.Session, m *discordgo.MessageCreate)
Commands handles the commands received in a Discord session message.
Parameters:
- s: a pointer to the Discord session
- m: a pointer to the Discord message received
Click to show internal directories.
Click to hide internal directories.