Skip to content

Commit

Permalink
state: Finish comments for NewAPIOnlyState
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondburned committed Aug 23, 2022
1 parent 9e9f90a commit 0d95310
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 0d95310

Please sign in to comment.