Skip to content
Snippets Groups Projects
Commit 52fd0aea authored by Ophestra's avatar Ophestra
Browse files

fix generation issue

parent f18d221b
Branches
Tags v1.0.8
No related merge requests found
......@@ -41,6 +41,9 @@ func NewCategory(name string, description string) *CommandCategory {
func (mux *Multiplexer) NewContextMessage(session *discordgo.Session, message *discordgo.Message, event interface{}) *Context {
guild := GetGuild(session, message.GuildID)
if guild == nil {
if message.Author.ID == session.State.User.ID {
return nil
}
log.Errorf("Unable to obtain guild when making Context.")
return nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment