1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-27 17:23:00 +00:00

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

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