1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-05 19:57:02 +00:00

state: Finish comments for NewAPIOnlyState

This commit is contained in:
diamondburned 2022-08-22 23:12:08 -07:00
parent 9e9f90a652
commit 0d95310dd2
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -157,7 +157,8 @@ func NewFromSession(s *session.Session, cabinet *store.Cabinet) *State {
// gateway (or state caches). Use this as a drop-in for InteractionServer usage.
//
// This function may work for most use cases; however, it will not work for all
// use cases. For example, bots that need the
// use cases. For example, bots that need the gateway won't be able to fully
// work, which is expected.
func NewAPIOnlyState(token string, h *handler.Handler) *State {
return &State{
Session: session.NewCustom(gateway.DefaultIdentifier(token), api.NewClient(token), h),