8 Commits

Author SHA1 Message Date
Rapptz
044b0824e6 Begin working on the rewrite. 2017-01-03 09:51:47 -05:00
khazhyk
4d87b2f817 Inject full Emoji to Reaction if we have it.
Reaction objects with custom Emoji are partial. If we know of this Emoji
(can find it on this client) then inject it. Otherwise, leave it as a
hollow Emoji. We can still react with a hollow Emoji, but can't get other
metadata about it.
2016-11-03 04:39:45 -04:00
khazhyk
158ac6bb50 Add around parameter to LogsFromIterator. 2016-10-16 18:10:49 -07:00
khazhyk
e2667a6f66 Refactor LogsFromIterator 2016-10-16 17:25:00 -07:00
Khazhismel Kumykov
492c9afffb logs_from improvements for after param.
- Properly support 'after' alone
- Properly support both 'before' and 'after'
- Add optional 'reverse' parameter to sort messages oldest->newest to
  1) provide a sorted result set for 'after'
  2) give flexibility when using both 'before' and 'after'
2016-05-20 18:11:57 -04:00
Rapptz
1f86a9b795 Add Client.purge_from as a high level interface around bulk delete. 2016-05-10 08:43:09 -04:00
Rapptz
b64b89f484 Use Queue instead of LifoQueue in LogsFromIterator.
That way you get the messages in newest to oldest rather than oldest
to newest.
2016-01-15 14:56:52 -05:00
Rapptz
d33d0bed69 Add support for async for in Client.logs_from.
This is a breaking change. Code will still work in Python 3.4 as-is but
if you use Python 3.5 you will have to change your code to the new
`async for` syntax as the older version is not supported in 3.5.

On the other hand, this comes with performance improvements if you use
Python 3.5 as it will lazily load 100 message chunks on an as needed
basis rather than loading all messages in one go.
2016-01-14 15:42:56 -05:00