mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-30 18:53:30 +00:00
State: Fixed message out-of-bound during copying
This commit is contained in:
parent
130e60c162
commit
dfcf6770c3
|
@ -472,6 +472,8 @@ func (s *DefaultStore) MessageSet(message *discord.Message) error {
|
|||
} else {
|
||||
// Else, append an empty message to the end.
|
||||
ms = append(ms, discord.Message{})
|
||||
// Increment to update the length.
|
||||
end++
|
||||
}
|
||||
|
||||
// Copy hack to prepend. This copies the 0th-(end-1)th entries to
|
||||
|
|
Loading…
Reference in a new issue