mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-27 17:23:00 +00:00
Fixed bug where MessageCreate handlers aren't called
This commit is contained in:
parent
95b6a1c0c9
commit
9f24ff3c9f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue