1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-28 01:33:10 +00:00

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

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