mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-23 13:06:42 +00:00
bot: Stop message handling on middleware errors
This commit is contained in:
parent
955bb2aad2
commit
b1cae78096
|
@ -59,6 +59,10 @@ func (ctx *Context) callCmd(ev interface{}) (bottomError error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if bottomError != nil {
|
||||||
|
return bottomError
|
||||||
|
}
|
||||||
|
|
||||||
var msc *gateway.MessageCreateEvent
|
var msc *gateway.MessageCreateEvent
|
||||||
|
|
||||||
// We call the messages later, since we want MessageCreate middlewares to
|
// We call the messages later, since we want MessageCreate middlewares to
|
||||||
|
|
Loading…
Reference in a new issue