Store: Fixed defaultstore out of bound error

This commit is contained in:
diamondburned 2020-12-18 22:33:11 -08:00
parent 88911a7d11
commit c9dd51aeb6
1 changed files with 1 additions and 1 deletions

View File

@ -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
}