mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-03-23 02:19:22 +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...)
|
mems = append(mems, m...)
|
||||||
|
|
||||||
// There aren't any to fetch, even if this is less than limit.
|
// There aren't any to fetch, even if this is less than limit.
|
||||||
if len(mems) < hardLimit {
|
if len(m) < hardLimit {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue