aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
Commit message (Collapse)AuthorAgeFilesLines
* Don't call close() if we've already been closed in Client.runalkatar212020-09-011-1/+2
|
* Fix hyperlink reference to PartialInviteChannel in ClientNanofaux2020-08-221-1/+1
|
* Fix gramatical error in Client guild_subscriptions docsJosh2020-08-041-1/+1
|
* Add guild_ready_timeout to control the timeout of GUILD_CREATE streamRapptz2020-07-251-0/+5
| | | | | | | This also fixes a timing issue where READY would take far too long to load for big bot authors. Closes #4112
* Handle Connection Reset by Peer connection errors.Rapptz2020-07-251-14/+23
| | | | | | | | | | | | This should work both on Windows and on Linux. Apparently these types of blips are considered normal for Discord. So rather than letting the reconnect logic handler expect these to be catastrophic, it should handle it specially so it doesn't waste an IDENTIFY for what ultimately should just be a small networking blip. This also makes it less noisy for the end-user as these complaints happen from time to time.
* Add before_identify_hook to have finer control over IDENTIFY syncingRapptz2020-07-251-6/+37
|
* Rewrite gateway to use aiohttp instead of websocketsRapptz2020-07-251-5/+6
|
* Rewrite of AutoShardedClient to prevent overlapping identifyRapptz2020-07-251-3/+6
| | | | This is experimental and I'm unsure if it actually works
* [bugs] stop resolving Object for template/invite; remove dupe methodsNCPlayz2020-06-291-2/+2
|
* Add support for Discord templatesNadir Chowdhury2020-06-281-2/+36
|
* Fix various inconsistencies within the documentation (#5067)Sebastian Law2020-06-281-6/+6
|
* Prepare for the discord.com domain renameRapptz2020-05-231-1/+1
|
* Fix timeout issues with fetching members via query_membersRapptz2020-05-101-19/+5
| | | | | | | | | | | | This uses the nonce field to properly disambiguate queries. There's also some redesigning going on behind the scenes and minor clean-up. Originally I planned on working on this more to account for the more widespread chunking changes planned for gateway v7 but I realized that this would indiscriminately slow down everyone else who isn't planning on working with intents for now. I will work on the larger chunking changes in the future, should time allow for it.
* Rename allowed mention parameters to allowed_mentionsRapptz2020-04-041-8/+8
|
* Allow introspection and setting of global allowed mention configurationRapptz2020-04-041-0/+18
|
* Fix various implementation bugs with allowed mentionsRapptz2020-04-041-1/+1
|
* Add support for configuring allowed mentions per message or bot wide.Rapptz2020-04-041-1/+5
|
* Fix regression with Member.activities not clearingRapptz2020-04-041-0/+3
|
* Change default close code to 4000 instead of 1000.Rapptz2020-04-041-1/+1
| | | | | | | | | | This prevents our sessions from being invalidated by Discord which caused a lot of failures when resuming. This caused an unnecessary amount of IDENTIFYs to happen depending on the circumstances. Closes #2631 See also discord/discord-api-docs#1472
* Don't add None to Member.activities tuplejack11422020-04-041-1/+2
|
* fixing the BaseActivity linksGlazed_Belmont2020-04-041-3/+3
|
* Minor documentation fixesRapptz2020-01-211-1/+1
|
* Drop superfluous zero in version related changes in the documentationRapptz2020-01-211-2/+2
|
* Bump copyright year to 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* Document BaseActivityRapptz2020-01-141-4/+0
|
* Expose _ActivityTag as BaseActivity to easily refer to.Rapptz2020-01-141-6/+6
|
* Fix more deprecation warnings for 3.8Rapptz2019-11-261-1/+1
|
* Fix all deprecation warnings for 3.8Rapptz2019-11-201-5/+5
|
* Use X-Ratelimit-Reset-After header by default.Rapptz2019-08-271-1/+10
| | | | There is now an option to turn it off, of course.
* Strip tokens before use.Rapptz2019-08-271-1/+1
| | | | Closes #2135
* Allow disabling the message cache with max_messages=NoneRapptz2019-08-271-3/+5
| | | | | | This also changes the default to 1000 instead of 5000 since it can take some time for small bots to cycle through the default and they make up the majority of it.
* Disambiguate and normalize documentation for non-bot only methodsTyler2019-08-111-1/+5
|
* Document that the cache retrieval functions require an int ID.Rapptz2019-07-231-9/+40
| | | | Closes #2285
* on_member_leave => on_member_removeTarek2019-07-181-1/+1
|
* Fix doc URL in Client.fetch_guildSteve C2019-07-181-1/+1
|
* Better knowledge on how guild_subscriptions work now.Rapptz2019-07-151-1/+6
|
* Add versionadded for guild_subscriptions option.Rapptz2019-07-101-14/+16
|
* Add support for guild subscriptions.Rapptz2019-07-101-0/+24
|
* Only return exception in Client.run when it's not cancelled.Rapptz2019-06-201-1/+2
|
* Propagate exception in Client.runRapptz2019-06-201-0/+2
| | | | Fix #2237
* Rename error type for `X.fetch_channel(s)`.NCPlayz2019-06-121-1/+1
|
* docs: Fix minor typoReece Dunham2019-06-121-5/+5
|
* Improve documentationNCPlayz2019-06-071-70/+80
|
* Implementing GET '/channels/:id' & '/guilds/:id/channels'NCPlayz2019-06-071-0/+45
| | | | Signed-off-by: NCPlayz <[email protected]>
* Add asyncio.Task subclass for better __repr__ for events.Rapptz2019-05-191-1/+22
|
* Validate kwargs in Client.startNCPlayz2019-05-191-0/+9
|
* Add back signal handling to Client.runRapptz2019-05-111-2/+16
| | | | | Apparently Python does not transform SIGTERM to KeyboardInterrupt as nicely as I thought.
* Rewrite loop cleanup code (again...) and remove signal handling.Rapptz2019-04-261-66/+27
| | | | This should hopefully be the last time I touch this.
* Use a regular boolean instead of asyncio.Event for close status.Rapptz2019-04-251-5/+5
|
* Add note about overriding Client.close vs Client.logoutRapptz2019-04-181-0/+6
|