Actually fix panic when a ticket is closed and the log contains no messages
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
8452a2e8e9
commit
ee61581b29
@ -252,7 +252,7 @@ func writeMsgs(msgs []*discordgo.Message, w io.Writer) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
for i := len(msgs); i >= 0; i-- {
|
||||
for i := len(msgs) - 1; i >= 0; i-- {
|
||||
_, err := io.WriteString(w, fmt.Sprintf("%s - %s\n", msgs[i].Author.Username, msgs[i].Content))
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user