mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-12-01 17:00:56 +00:00
Examples: Fixed advanced_bot bug where it immediately removes its own handlers
This commit is contained in:
parent
1e400dfc27
commit
8c833814ba
|
|
@ -117,7 +117,7 @@ func Start(token string, cmd interface{},
|
||||||
}
|
}
|
||||||
|
|
||||||
return func() error {
|
return func() error {
|
||||||
cancel()
|
defer cancel()
|
||||||
return s.Wait()
|
return s.Wait()
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue