1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-23 04:57:16 +00:00

bot: Stop message handling on middleware errors

This commit is contained in:
diamondburned 2021-08-08 13:53:24 -07:00
parent 955bb2aad2
commit b1cae78096

View file

@ -59,6 +59,10 @@ func (ctx *Context) callCmd(ev interface{}) (bottomError error) {
}
}
if bottomError != nil {
return bottomError
}
var msc *gateway.MessageCreateEvent
// We call the messages later, since we want MessageCreate middlewares to