diff --git a/command-manager.go b/command-manager.go index f9f4fad..346f227 100644 --- a/command-manager.go +++ b/command-manager.go @@ -92,14 +92,14 @@ func (c *CommandManager) OnMessage(session *discordgo.Session, m *discordgo.Mess guild, _ := session.Guild(m.GuildID) ctx := Context{ - Session: session, - Channel: channel, - Message: m.Message, - User: m.Author, - Guild: guild, - Member: m.Member, - Invoked: "", - ErrorChannel: c.ErrorChannel, + Session: session, + Channel: channel, + Message: m.Message, + User: m.Author, + Guild: guild, + Member: m.Member, + Invoked: "", + CommandManager: c, } var cmd []string diff --git a/structs.go b/structs.go index ee9d63d..2f7f820 100644 --- a/structs.go +++ b/structs.go @@ -80,6 +80,6 @@ type Context struct { Member *discordgo.Member // Name of the command as it was invoked (this is so you know what alias was used to call the command) Invoked string - // Error channel - ErrorChannel chan CommandError + // Command Manager + CommandManager *CommandManager }