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:
parent
46b001548d
commit
55e9c28d37
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue