mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-04-28 00:44:58 +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.
|
// 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)
|
s := session.NewWithIdentifier(id)
|
||||||
return NewFromSession(s, defaultstore.New())
|
return NewFromSession(s, defaultstore.New())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue