mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-08 13:07:43 +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
|
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 {
|
for i, ch := range s.privateChs {
|
||||||
channels[i] = *ch
|
channels[i] = *ch
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue