1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-09-23 00:13:34 +00:00
Commit Graph

600 Commits

Author SHA1 Message Date
1c63816cc0 [commands] Document / type-hint cooldown 2021-08-10 08:35:15 -04:00
b640493300 Add enable_debug_events parameter to enable expensive debug events
This should allow less dispatching during heavy gateway event streams.
2021-07-31 20:35:28 -04:00
6beef898c6 Rename instances of nitro to premium 2021-07-30 23:10:36 -04:00
60d82cf908 implement guild stickers 2021-07-30 21:25:41 -04:00
15eb3d2e5d Remove afk parameter from change_presence 2021-07-21 02:45:57 -04:00
750ba88f2c Fix typing errors with Client 2021-07-04 07:55:20 -04:00
d1dc41ec2f Fix Client.fetch_channel not returning Thread 2021-07-03 21:35:31 -04:00
7601d6cec3 [typing] Type-hint client.py 2021-06-29 20:02:19 -04:00
233d10649c [docs] Update Sphinx and Fix various references
Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
2021-06-27 23:43:49 -04:00
11e23c534a Close ClientSession after closing websocket connections 2021-06-10 07:32:05 -04:00
78275023cc Add Client.persistent_views to get all persistent views 2021-05-31 23:15:12 -04:00
7c40e83d10 Ensure views added to Client.add_view are persistent views 2021-05-31 23:08:08 -04:00
9f98a9a87f Implement StageInstance 2021-05-30 13:51:52 -04:00
732c5384fd Allow registering a View for persistent long term dispatching 2021-05-29 00:44:08 -04:00
71fe40aafa Consistent loop attribute description 2021-05-23 03:36:20 -04:00
757cfad38f Type up **kwargs of various methods 2021-05-10 20:24:48 -04:00
3864fb37a0 Fix various reference issues in documentation
Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
2021-05-06 07:51:07 -04:00
b82a0dc6fd [docs] remove mentions of bot only usability 2021-05-04 07:21:59 -04:00
b0ec22065e Add Client.create_dm 2021-05-01 13:16:57 -04:00
e762f55847 Add fetch_invite with with_expiration 2021-05-01 07:46:16 -04:00
56f4ae3a83 [docs] Update notes for get_user and get_member 2021-04-27 21:56:00 -04:00
631a0b1e13 Add support for ApplicationFlags 2021-04-18 20:32:52 -04:00
9f1a96ea9b Remove fetch_offline_members param for Client 2021-04-14 20:58:49 -04:00
dea92a69dc Remove support for guild subscriptions 2021-04-14 00:47:46 -04:00
d5ad269b35 Fix Intents resolution in the docs 2021-04-10 15:50:46 -04:00
1efdef3ac3 Add typings for invites, templates, and bans 2021-04-10 02:55:10 -04:00
eb5356cc47 Remove user token warning in login 2021-04-08 23:49:40 -04:00
99fc950510 Use f-strings in more places that were missed. 2021-04-08 06:02:47 -04:00
89456022cf Add __all__ to remaining modules 2021-04-07 02:30:32 -04:00
1e7f139313 Add support for setting application_id 2021-04-06 01:11:36 -04:00
686a54eb10 Remove 3.6 check for loop.shutdown_asyncgens() 2021-04-05 20:31:45 -04:00
7a7c4b4d62 Remove fail-safe for retrieving all tasks 2021-04-05 20:29:37 -04:00
88be8cc5be Remove deprecated client methods 2021-04-05 17:44:05 -04:00
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
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
59aa1a0e5f Remove asyncio.Task subclass in preference to task names 2021-04-04 07:24:42 -04:00
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
6887d3946a [docs] Fix fetch_members/guilds documentation 2021-03-31 21:27:40 -04:00
954dd09e18 Deprecate Client.logout 2021-03-31 07:30:41 -04:00
63ec23bac2 Code optimisations and refactoring via Sourcery 2021-02-24 21:26:51 -05:00
427e387a2f Deprecate non-bot methods 2021-02-23 03:36:37 -05:00
69bdc3a184 Change copyright year to present 2021-01-15 05:28:11 -05:00
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
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
28e5b2a5e1 Add Client.intents to query the current intents
Closes 
2020-09-26 06:35:41 -04:00
005a80303f Add chunk_guilds_at_startup and deprecate fetch_offline_members 2020-09-24 01:17:04 -04:00
625a5c2a0b Some documentation fixes for MemberCacheFlags and Intents 2020-09-23 03:21:21 -04:00
8d5c05ed20 Default MemberCacheFlags based on intents 2020-09-23 03:21:21 -04:00
bf8ca58996 Add a special exception for required privileged intents 2020-09-23 03:21:20 -04:00
23ae084b8c Allow finer grained control over the member cache. 2020-09-23 03:21:20 -04:00