Commit Graph

22 Commits

Author SHA1 Message Date
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
Tadeo Kondrak d290b0d01c *: Add typed Snowflake IDs (#122)
This PR closes #120.
2020-07-29 16:58:33 -07:00
mavolin 147b01641b API: fix illogical order of parameters 2020-05-22 19:19:08 -07:00
mavolin 93d9323b3b API: fix accidental append instead of prepend 2020-05-22 17:09:55 -07:00
mavolin e4b43c0a83 Discord: fix invalid calc of after 2020-05-22 16:01:09 -07:00
mavolin b3fabae701
API: implement #77 2020-05-17 01:35:57 +02:00
mavolin fb3ea3ce10
API: code cleanup 2020-05-12 04:05:08 +02:00
Maximilian von Lindern ae14c8fb73
Merge branch 'master' into 44-data-structs 2020-05-12 03:57:35 +02:00
mavolin 04a80d33e8
API: add docs, use option types 2020-05-12 03:44:13 +02:00
mavolin 17e5696cc9
API: close #42 2020-05-11 21:03:33 +02:00
diamondburned (Forefront) be12849668 Changed internal/ to utils/, allowing external imports 2020-04-08 19:28:40 -07:00
diamondburned (Forefront) 6fb68be631 More Reaction API changes 2020-01-22 21:13:53 -08:00
diamondburned (Forefront) 958f592cb4 Finished state 2020-01-18 11:34:08 -08:00
diamondburned 127c636310 Moved misc packages to internal 2020-01-15 10:32:54 -08:00
diamondburned (Forefront) d6ab7b9d52 Completed guilds, added max pagination API 2020-01-06 22:45:29 -08:00
diamondburned (Forefront) 966d14a32f Nitpicking function signature formatting 2020-01-05 21:32:25 -08:00
diamondburned (Forefront) cd92feb03b Fixed API fault where Reactions would take a limit 2020-01-05 21:26:20 -08:00
diamondburned (Forefront) 084cf093ae Changed Range method APIs 2020-01-05 21:22:26 -08:00
diamondburned (Forefront) a386f6a359 More things, what a pain in the ass 2020-01-05 19:48:39 -08:00
diamondburned b77d5f20da Fixed package header pointing to sourcehut instead of GitHub 2020-01-02 11:55:45 -08:00
diamondburned e41a2c7c42 Moved Discord structs to package discord 2020-01-02 11:53:08 -08:00
diamondburned 09d9651507 Initial commit 2020-01-01 21:39:52 -08:00