From a4611b7ab43b076488d9539bdb5ed3daff3e4275 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sat, 25 Dec 2021 15:08:01 -0800 Subject: [PATCH] state: Remove redundant token parameter --- state/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state/state.go b/state/state.go index 771aa14..6180c5d 100644 --- a/state/state.go +++ b/state/state.go @@ -124,7 +124,7 @@ func NewWithIntents(token string, intents ...gateway.Intents) *State { } // NewWithIdentifier creates a new state with the given gateway identifier. -func NewWithIdentifier(token string, id gateway.Identifier) *State { +func NewWithIdentifier(id gateway.Identifier) *State { s := session.NewWithIdentifier(id) return NewFromSession(s, defaultstore.New()) }