mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-20 19:47:12 +00:00
API: fix unlimited pagination error
This commit is contained in:
parent
e4b43c0a83
commit
7b52582c93
|
@ -56,7 +56,7 @@ func (c *Client) MembersAfter(
|
|||
mems = append(mems, m...)
|
||||
|
||||
// There aren't any to fetch, even if this is less than limit.
|
||||
if len(mems) < hardLimit {
|
||||
if len(m) < hardLimit {
|
||||
break
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue