Fixed bug where MessageCreate handlers aren't called

This commit is contained in:
diamondburned (Forefront) 2020-01-25 18:03:09 -08:00
parent 95b6a1c0c9
commit 9f24ff3c9f
1 changed files with 0 additions and 5 deletions

View File

@ -73,11 +73,6 @@ func (ctx *Context) filterEventType(evT reflect.Type) []*CommandContext {
func (ctx *Context) callCmd(ev interface{}) error {
evT := reflect.TypeOf(ev)
if evT == typeMessageCreate {
// safe assertion always
return ctx.callMessageCreate(ev.(*gateway.MessageCreateEvent))
}
var isAdmin *bool // I want to die.
var isGuild *bool
var callers []*CommandContext