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
1 changed files with 2 additions and 1 deletions

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),