From 0d95310dd280a319193ebe7a96df82dd9bc2dc6a Mon Sep 17 00:00:00 2001 From: diamondburned Date: Mon, 22 Aug 2022 23:12:08 -0700 Subject: [PATCH] state: Finish comments for NewAPIOnlyState --- state/state.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/state/state.go b/state/state.go index a4c9555..fa00fc1 100644 --- a/state/state.go +++ b/state/state.go @@ -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),