| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Add chunk_guilds_at_startup and deprecate fetch_offline_members | Rapptz | 2020-09-24 | 1 | -4/+5 |
| | | |||||
| * | Add a special exception for required privileged intents | Rapptz | 2020-09-23 | 1 | -3/+17 |
| | | |||||
| * | Add Guild.chunk and deprecated Client.request_offline_members | Rapptz | 2020-09-23 | 1 | -1/+2 |
| | | |||||
| * | Fix Client.request_offline_members no longer working | Rapptz | 2020-09-23 | 1 | -4/+8 |
| | | |||||
| * | Implement VoiceProtocol lower level hooks. | Rapptz | 2020-09-23 | 1 | -0/+1 |
| | | | | | | This allows changing the connect flow and taking control of it without relying on internal events or tricks. | ||||
| * | Remove caching from AutoShardedClient.shards | Rapptz | 2020-09-10 | 1 | -1/+1 |
| | | |||||
| * | Terminate shard processing queue when a clean close is encountered. | Rapptz | 2020-08-01 | 1 | -0/+4 |
| | | | | | Fix #5180 | ||||
| * | Fix AttributeError from internal queue being double underscore. | Rapptz | 2020-07-25 | 1 | -11/+11 |
| | | |||||
| * | Add an exposed way to extract shard-specific information. | Rapptz | 2020-07-25 | 1 | -11/+93 |
| | | | | | Closes #2654 | ||||
| * | Propagate exceptions when an unhandled error happens | Rapptz | 2020-07-25 | 1 | -0/+17 |
| | | |||||
| * | Handle Connection Reset by Peer connection errors. | Rapptz | 2020-07-25 | 1 | -2/+8 |
| | | | | | | | | | | | | | 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 shard related connection and resume events. | Rapptz | 2020-07-25 | 1 | -0/+2 |
| | | | | | | | | These include: * on_shard_resumed * on_shard_connect * on_shard_disconnect | ||||
| * | Handle connection errors during reidentify flow. | Rapptz | 2020-07-25 | 1 | -5/+9 |
| | | |||||
| * | Make every shard maintain its own reconnect loop | Rapptz | 2020-07-25 | 1 | -14/+70 |
| | | | | | | | | | | | | | Previously if a disconnect happened the client would get in a bad state and certain shards would be double sending due to unhandled exceptions raising back to Client.connect and causing all shards to be reconnected again. This new code overrides Client.connect to have more finer control and allow each individual shard to maintain its own reconnect loop and then serially request reconnection to ensure that IDENTIFYs are not overlapping. | ||||
| * | Add before_identify_hook to have finer control over IDENTIFY syncing | Rapptz | 2020-07-25 | 1 | -11/+6 |
| | | |||||
| * | Fix READY not firing for multi-processed AutoShardedClient clusters | Rapptz | 2020-07-25 | 1 | -3/+2 |
| | | |||||
| * | Use a proper type for the event queue | Rapptz | 2020-07-25 | 1 | -15/+28 |
| | | |||||
| * | Rewrite gateway to use aiohttp instead of websockets | Rapptz | 2020-07-25 | 1 | -21/+1 |
| | | |||||
| * | Fix AttributeError on reconnection | Rapptz | 2020-07-25 | 1 | -4/+4 |
| | | |||||
| * | Rewrite of AutoShardedClient to prevent overlapping identify | Rapptz | 2020-07-25 | 1 | -50/+53 |
| | | | | | This is experimental and I'm unsure if it actually works | ||||
| * | Fix timeout issues with fetching members via query_members | Rapptz | 2020-05-10 | 1 | -25/+6 |
| | | | | | | | | | | | | | 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. | ||||
| * | Fix regression with Member.activities not clearing | Rapptz | 2020-04-04 | 1 | -2/+2 |
| | | |||||
| * | Change default close code to 4000 instead of 1000. | Rapptz | 2020-04-04 | 1 | -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 tuple | jack1142 | 2020-04-04 | 1 | -1/+2 |
| | | |||||
| * | Bump waiting time of GUILD_CREATE stream by number of shards waited. | Rapptz | 2020-01-28 | 1 | -0/+1 |
| | | | | | | 2 seconds might be too short and cause it to finish waiting while other shards are still IDENTIFYing. | ||||
| * | Bump copyright year to 2020 | Rapptz | 2020-01-19 | 1 | -1/+1 |
| | | | | | Closes #2510 | ||||
| * | Document BaseActivity | Rapptz | 2020-01-14 | 1 | -4/+0 |
| | | |||||
| * | Expose _ActivityTag as BaseActivity to easily refer to. | Rapptz | 2020-01-14 | 1 | -1/+1 |
| | | |||||
| * | Fix more deprecation warnings | Rapptz | 2019-11-20 | 1 | -1/+1 |
| | | |||||
| * | Fix all deprecation warnings for 3.8 | Rapptz | 2019-11-20 | 1 | -11/+11 |
| | | |||||
| * | docs: Fix minor typo | Reece Dunham | 2019-06-12 | 1 | -1/+1 |
| | | |||||
| * | Improve documentation | NCPlayz | 2019-06-07 | 1 | -4/+4 |
| | | |||||
| * | Use a dict instead of getattr for parsing events. | Rapptz | 2019-05-29 | 1 | -0/+1 |
| | | | | | | | | | | | | Probably not a significant difference but might as well use it here. The basic idea is to cache the getattr calls instead of repeatedly doing it (since they're around 105ns on my machine). The dictionary lookup is about 41ns on my machine. The next step in speeding up library code some more should be in the parser bodies themselves but that's a problem to tackle another day. | ||||
| * | Use a regular boolean instead of asyncio.Event for close status. | Rapptz | 2019-04-25 | 1 | -1/+1 |
| | | |||||
| * | Fix oversight where on_disconnect did not get called on WS termination. | Rapptz | 2019-04-08 | 1 | -0/+2 |
| | | |||||
| * | Organise documentation | NCPlayz | 2019-03-19 | 1 | -3/+3 |
| | | |||||
| * | Bumped copyright years to 2019. | Dante Dam | 2019-01-28 | 1 | -1/+1 |
| | | |||||
| * | Add support for multiple activities | SnowyLuma | 2018-11-24 | 1 | -1/+1 |
| | | |||||
| * | [lint] Fix import order | Hornwitser | 2018-11-24 | 1 | -5/+6 |
| | | | | | | Reorder imports to be consistenly grouped by standard library, third party library, and local modules in that order thoughout the library. | ||||
| * | [lint] Remove redundant paranthesis | Hornwitser | 2018-11-24 | 1 | -2/+2 |
| | | | | | | Remove redundant parenthisis around await expressions. Left over from f25091ef. | ||||
| * | [lint] Limit unneccessarily broad except clauses | Hornwitser | 2018-11-24 | 1 | -1/+1 |
| | | | | | Add exception qualifier(s) to bare except clauses swallowing exceptions. | ||||
| * | Don't try to close shards if there are none yet. | Gorialis | 2018-09-26 | 1 | -1/+3 |
| | | |||||
| * | Optimise tight loops in DiscordGateway.received_message | Rapptz | 2018-09-24 | 1 | -1/+2 |
| | | | | | | | * type(x) is y is faster than isinstance(x, y) * Re-arrange if-statements for common statements * Drop handler getattr for most events that don't use it | ||||
| * | Change docstrings to raw-strings | BeatButton | 2018-09-14 | 1 | -1/+1 |
| | | |||||
| * | [lint] Fix incorrect and inconsistent whitespace | Hornwitser | 2018-08-22 | 1 | -4/+2 |
| | | | | | Adjust whitespace to be consistent with the rest of the library. | ||||
| * | [lint] Remove unused variables | Hornwitser | 2018-08-22 | 1 | -3/+3 |
| | | | | | Left over from various refactoring and rewrites. | ||||
| * | Disable compression for websockets. | Rapptz | 2018-06-10 | 1 | -1/+1 |
| | | | | | Increase of RAM and CPU doesn't give me much benefit I feel. | ||||
| * | Remove dead package references. | Rapptz | 2018-06-10 | 1 | -1/+1 |
| | | |||||
| * | Drop support for Python 3.4 and make minimum version 3.5.2. | Rapptz | 2018-06-10 | 1 | -54/+37 |
| | | |||||
| * | Split Game object to separate Activity subtypes for Rich Presences. | Rapptz | 2018-03-05 | 1 | -9/+15 |
| | | | | | | | | | | | | This is a massive breaking change. * All references to "game" have been renamed to "activity" * Activity objects contain a majority of the rich presence information * Game and Streaming are subtypes for memory optimisation purposes for the more common cases. * Introduce a more specialised read-only type, Spotify, for the official Spotify integration to make it easier to use. | ||||