mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-05 19:57:02 +00:00
Store: Fixed defaultstore out of bound error
This commit is contained in:
parent
88911a7d11
commit
c9dd51aeb6
|
@ -96,7 +96,7 @@ func (s *Channel) PrivateChannels() ([]discord.Channel, error) {
|
|||
return nil, store.ErrNotFound
|
||||
}
|
||||
|
||||
var channels = make([]discord.Channel, 0, len(s.privateChs))
|
||||
var channels = make([]discord.Channel, len(s.privateChs))
|
||||
for i, ch := range s.privateChs {
|
||||
channels[i] = *ch
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue