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:
parent
bc8a2b0cae
commit
a4611b7ab4
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue