mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-05 19:57:02 +00:00
SetSelf -> SelfSet
This commit is contained in:
parent
b2171d8784
commit
345ef44e6c
|
@ -68,7 +68,7 @@ func (s *State) Self() (*discord.User, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
return u, s.Store.SetSelf(u)
|
||||
return u, s.Store.SelfSet(u)
|
||||
}
|
||||
|
||||
////
|
||||
|
|
|
@ -43,7 +43,7 @@ type StoreGetter interface {
|
|||
}
|
||||
|
||||
type StoreModifier interface {
|
||||
SetSelf(me *discord.User) error
|
||||
SelfSet(me *discord.User) error
|
||||
|
||||
ChannelSet(*discord.Channel) error
|
||||
ChannelRemove(*discord.Channel) error
|
||||
|
|
|
@ -70,7 +70,7 @@ func (s *DefaultStore) Self() (*discord.User, error) {
|
|||
return &s.self, nil
|
||||
}
|
||||
|
||||
func (s *DefaultStore) SetSelf(me *discord.User) error {
|
||||
func (s *DefaultStore) SelfSet(me *discord.User) error {
|
||||
s.mut.Lock()
|
||||
s.self = *me
|
||||
s.mut.Unlock()
|
||||
|
|
Loading…
Reference in a new issue