You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the state also has an API abstraction, it could also have a similar method:
ctx, cancel:=context.WithTimeout(context.Background(), time.Second)
defercancel()
cstate:=state.WithContext(ctx)
cstate.Guild() // will use context with copied API instance.
The text was updated successfully, but these errors were encountered:
Allow copying the API struct with a non-nil context, which would allow people to inject a Context in.
Example:
Since the state also has an API abstraction, it could also have a similar method:
The text was updated successfully, but these errors were encountered: