1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-27 17:23:00 +00:00

state: Remove redundant token parameter

This commit is contained in:
diamondburned 2021-12-25 15:08:01 -08:00
parent bc8a2b0cae
commit a4611b7ab4
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -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())
}