Commit Graph
592 Commits
Author SHA1 Message Date
iDutchy a453266cd4 conflict fixes 2021-04-07 18:27:34 -05:00
Nadir Chowdhury 89456022cf Add __all__ to remaining modules 2021-04-07 02:30:32 -04:00
Rapptz 1e7f139313 Add support for setting application_id 2021-04-06 01:11:36 -04:00
Nadir Chowdhury 686a54eb10 Remove 3.6 check for loop.shutdown_asyncgens() 2021-04-05 20:31:45 -04:00
Nadir Chowdhury 7a7c4b4d62 Remove fail-safe for retrieving all tasks 2021-04-05 20:29:37 -04:00
Vaskel 88be8cc5be Remove deprecated client methods 2021-04-05 17:44:05 -04:00
Rapptz ff7094ce96 Convert datetimes to aware datetimes with UTC.
Naive datetimes will now be interpreted as local time throughout
the library.
2021-04-04 23:54:08 -04:00
Rapptz 54288879e2 Remove userbot functionality
This has a lot of legacy and cruft so there may be some stuff I've
missed but this first pass is enough to get a clear separation.
2021-04-04 10:15:30 -04:00
Rapptz 59aa1a0e5f Remove asyncio.Task subclass in preference to task names 2021-04-04 07:24:42 -04:00
Rapptz 9d39b135f4 Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
2021-04-04 07:03:53 -04:00
Nadir Chowdhury 6887d3946a [docs] Fix fetch_members/guilds documentation 2021-03-31 21:27:40 -04:00
apple502j 954dd09e18 Deprecate Client.logout 2021-03-31 07:30:41 -04:00
Nadir Chowdhury 63ec23bac2 Code optimisations and refactoring via Sourcery 2021-02-24 21:26:51 -05:00
Nadir Chowdhury 427e387a2f Deprecate non-bot methods 2021-02-23 03:36:37 -05:00
iDutchy f1309aa4a1 added Client.get_message 2021-02-11 18:38:33 -06:00
Nihaal Sangha 69bdc3a184 Change copyright year to present 2021-01-15 05:28:11 -05:00
iDutchy 0354036451 fix conflicts 2020-12-04 19:05:58 -06:00
Nadir Chowdhury 6b803acde4 [chore] Remove redundant imports
This also removes the historical patch for NullHandler implemented in bbf1c54, as it has been available since Python 3.1.
2020-11-28 03:16:49 -05:00
Rapptz 12d0ae71df Add a way to check if the websocket is rate limited.
This is mainly for low level decision making for utilities that need
to know whether to fetch a member by HTTP or to query through the
websocket.

The library already does this trick in some places so it's only fair
that end users possess the same ability as well.
2020-11-26 04:43:15 -05:00
iDutchy 3521ae985a added versionadded 2020-10-21 17:44:46 -05:00
iDutchy d75cd66b90 oh ffs 2020-10-17 18:42:19 -05:00
iDutchy 9e0303cc53 Extra security for not overriding bot.embed_color 2020-10-04 02:03:55 +00:00
iDutchy 525ee4be0a update docs 2020-10-02 00:34:01 +00:00
iDutchy 60d383cb51 oop 2020-10-01 22:45:57 +00:00
iDutchy 4297eed591 hmm 2020-10-01 22:41:02 +00:00
iDutchy b5ef2bdec4 oop 2020-10-01 22:24:15 +00:00
iDutchy 768f409a84 hmm 2020-10-01 22:22:53 +00:00
iDutchy 21ea6fe9ac hmm 2020-10-01 22:16:05 +00:00
iDutchy 291237bac9 hmm 2020-10-01 22:11:25 +00:00
iDutchy 397535f1e5 hmm 2020-10-01 22:05:34 +00:00
iDutchy e6cf6c4b8c hmm 2020-10-01 21:58:29 +00:00
iDutchy 0860df8fa5 hmm 2020-10-01 21:53:49 +00:00
iDutchy 1c228f9548 oop 2020-10-01 21:43:22 +00:00
iDutchy 0088ab589b oop 2020-10-01 21:42:00 +00:00
iDutchy d79bc7c3c9 support for default embed color 2020-10-01 21:37:37 +00:00
iDutchy 74713b05ee add try_user 2020-10-01 01:24:30 +00:00
Rapptz 28e5b2a5e1 Add Client.intents to query the current intents
Closes #5854
2020-09-26 06:35:41 -04:00
Rapptz 005a80303f Add chunk_guilds_at_startup and deprecate fetch_offline_members 2020-09-24 01:17:04 -04:00
Rapptz 625a5c2a0b Some documentation fixes for MemberCacheFlags and Intents 2020-09-23 03:21:21 -04:00
Rapptz 8d5c05ed20 Default MemberCacheFlags based on intents 2020-09-23 03:21:21 -04:00
Rapptz bf8ca58996 Add a special exception for required privileged intents 2020-09-23 03:21:20 -04:00
Rapptz 23ae084b8c Allow finer grained control over the member cache. 2020-09-23 03:21:20 -04:00
Rapptz cb8cb557f5 Add Guild.chunk and deprecated Client.request_offline_members 2020-09-23 03:21:19 -04:00
Rapptz 055fe76241 Fix Client.request_offline_members no longer working 2020-09-23 03:21:19 -04:00
Rapptz a6381dcf77 Add support for guild intents 2020-09-23 03:21:15 -04:00
Rapptz 0b93fa3a82 Implement VoiceProtocol lower level hooks.
This allows changing the connect flow and taking control of it without
relying on internal events or tricks.
2020-09-23 03:20:35 -04:00
Michael 93fa46713a Fix and add documentation 2020-09-23 03:19:35 -04:00
Tarek 7f17dc79a6 Remove namedtuples to better future guard the library 2020-09-21 03:36:58 -04:00
alkatar21 dce653a0eb Don't call close() if we've already been closed in Client.run 2020-09-01 15:24:47 -04:00
Nanofaux dd408f6871 Fix hyperlink reference to PartialInviteChannel in Client 2020-08-22 16:26:24 -04:00