diff --git a/bot/ctx.go b/bot/ctx.go index 0e399ba..ec33f77 100644 --- a/bot/ctx.go +++ b/bot/ctx.go @@ -100,7 +100,7 @@ func Start(token string, cmd interface{}, return nil, errors.Wrap(err, "Failed to create rfrouter") } - s.ErrorLog = func(err error) { + s.Gateway.ErrorLog = func(err error) { c.ErrorLogger(err) }