Dante Dam
9656a21ebe
Bumped copyright years to 2019.
6 years ago
Hornwitser
51d626eabe
[lint] Remove redundant paranthesis
Remove redundant parenthisis around await expressions. Left over from
f25091ef
.
7 years ago
Hornwitser
c8b49d37be
[lint] Fix incorrect and inconsistent whitespace
Adjust whitespace to be consistent with the rest of the library.
7 years ago
Hornwitser
d58fc0ccee
[lint] Remove unused imports
Left over from various refactoring and rewrites.
7 years ago
Rapptz
983be10111
Fix __aiter__ compatibility with 3.7.
7 years ago
Rapptz
f25091efe1
Drop support for Python 3.4 and make minimum version 3.5.2.
7 years ago
Rapptz
e0f02f1775
Rename AsyncIterator.get to next to prevent shadowing.
8 years ago
Rapptz
152fc89508
Properly check for audit log entry termination.
8 years ago
Rapptz
eb58ddffd8
Skip None action types when iterating.
8 years ago
Rapptz
c54a6a927d
Implement audit logs.
8 years ago
Rapptz
1fc08bc5a2
Remove unused imports.
8 years ago
Rapptz
af0ba17885
Proper termination of HistoryIterator.flatten.
8 years ago
Rapptz
8e654bd52a
Add support for limit=None in Messageable.history.
Fixes #480 .
8 years ago
Rapptz
47ef657fbd
Implement async checks. Fixes #380 .
8 years ago
Rapptz
2abdbc70c2
Implement utilities for AsyncIterator.
Closes #473 .
8 years ago
Rapptz
ff9f5749e1
Update copyright year to 2017.
8 years ago
Rapptz
ae6fb54b1b
Make Reaction.users return an async iterator.
8 years ago
Rapptz
06ca518459
Rename NoMoreMessages to NoMoreItems.
8 years ago
Rapptz
8c274139df
Allow HistoryIterator to be flattened into a list.
8 years ago
Rapptz
0e0b569d53
Propagate event loop in Messageable.history.
8 years ago
Rapptz
7431a127cf
Change Messageable channel getter to be a coroutine.
8 years ago
Rapptz
98b981848d
Move message creation to a factory method inside ConnectionState.
8 years ago
Rapptz
53ab263125
Split channel types.
This splits them into the following:
* DMChannel
* GroupChannel
* VoiceChannel
* TextChannel
This also makes the channels "stateful".
9 years ago
Rapptz
044b0824e6
Begin working on the rewrite.
9 years ago
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.
9 years ago
khazhyk
158ac6bb50
Add around parameter to LogsFromIterator.
9 years ago
khazhyk
e2667a6f66
Refactor LogsFromIterator
9 years ago
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'
9 years ago
Rapptz
1f86a9b795
Add Client.purge_from as a high level interface around bulk delete.
9 years ago
Rapptz
b64b89f484
Use Queue instead of LifoQueue in LogsFromIterator.
That way you get the messages in newest to oldest rather than oldest
to newest.
9 years ago
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.
9 years ago