A TryResume method #1111
Benricheson101
started this conversation in
Ideas
Replies: 1 comment
-
Last night I was able to get it working by (ab)using the reflect API. It works but the issue is that if you try to resume a large number of shards and >16 fail to resume, you'll get ratelimited when discordgo automatically identifies. Having a dedicated method for resumung and failing with an error would alleviate this issue. Hack: https://gist.github.com/Benricheson101/97de1647f0604dfb5835a8c2afabf40e |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For large bots, reconnecting all shards to the gateway can take a long time. It would be nice if there was a method, something like
func (*Session) TryResume(sequence int64, sessionID string) error
that would attempt to resume a shard's gateway connection as an alternative to Session::Open.Beta Was this translation helpful? Give feedback.
All reactions