API: fix Message.Author.ID getting sent instead of Message.ID

This commit is contained in:
mavolin 2020-05-24 17:49:23 +02:00 committed by diamondburned
parent 46b001548d
commit 55e9c28d37
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ func (c *Client) MessagesBefore(
break
}
before = m[0].Author.ID
before = m[0].ID
}
return msgs, nil
@ -105,7 +105,7 @@ func (c *Client) MessagesAfter(
break
}
after = m[len(m)-1].Author.ID
after = m[len(m)-1].ID
}
return msgs, nil