1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-27 17:23:00 +00:00
arikawa/api
Maximilian von Lindern 397d288927
API: fix errors in message pagination and streamline changes with other pagination methods (#150)
* API: fix faulty pagination behavior

This fix fixes a condition which lead to all messages getting fetched if the limit was a multiple of 100, instead of just the limit.

* API: add NewestMessages

* API: clarify MessageAfter docs

* API: adapt paginating methods for guild, member and message reaction to match the style of message's pagination methods

* API: return nil if no items were fetched

* API: remove Messages and Rename NewestMessages to Messages
2020-10-19 07:47:43 -07:00
..
rate httputil: Fixed unlock of unlocked mutex bug 2020-08-04 14:09:43 -07:00
api.go *: Linting and typo fixes (#134) 2020-07-29 16:58:33 -07:00
api_test.go API: Added WithContext API, closes #15 2020-05-03 14:02:03 -07:00
channel.go Discord/API: implement changes to permission, allow and deny fields (#141) 2020-08-17 17:10:43 -07:00
emoji.go *: Linting and typo fixes (#134) 2020-07-29 16:58:33 -07:00
guild.go API: fix errors in message pagination and streamline changes with other pagination methods (#150) 2020-10-19 07:47:43 -07:00
image.go make all error messages lowercase 2020-05-16 23:14:49 +02:00
integration_test.go *: Add typed Snowflake IDs (#122) 2020-07-29 16:58:33 -07:00
invite.go *: Add typed Snowflake IDs (#122) 2020-07-29 16:58:33 -07:00
login.go Utils: Deprecated client-scoped JSON driver 2020-05-07 20:43:46 -07:00
member.go API: fix errors in message pagination and streamline changes with other pagination methods (#150) 2020-10-19 07:47:43 -07:00
message.go API: fix errors in message pagination and streamline changes with other pagination methods (#150) 2020-10-19 07:47:43 -07:00
message_reaction.go API: fix errors in message pagination and streamline changes with other pagination methods (#150) 2020-10-19 07:47:43 -07:00
role.go Discord/API: implement changes to permission, allow and deny fields (#141) 2020-08-17 17:10:43 -07:00
send.go *: Linting and typo fixes (#134) 2020-07-29 16:58:33 -07:00
send_test.go *: Add typed Snowflake IDs (#122) 2020-07-29 16:58:33 -07:00
user.go *: Add typed Snowflake IDs (#122) 2020-07-29 16:58:33 -07:00
webhook.go API: separate token-based and bot-based interactions with webhooks (#130) 2020-07-29 16:58:33 -07:00