mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-07 12:38:05 +00:00
state: Finish comments for NewAPIOnlyState
This commit is contained in:
parent
9e9f90a652
commit
0d95310dd2
|
@ -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.
|
// 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
|
// 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 {
|
func NewAPIOnlyState(token string, h *handler.Handler) *State {
|
||||||
return &State{
|
return &State{
|
||||||
Session: session.NewCustom(gateway.DefaultIdentifier(token), api.NewClient(token), h),
|
Session: session.NewCustom(gateway.DefaultIdentifier(token), api.NewClient(token), h),
|
||||||
|
|
Loading…
Reference in a new issue