| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Code optimisations and refactoring via Sourcery | Nadir Chowdhury | 2021-02-24 | 1 | -9/+4 |
| | | |||||
| * | Fix ZeroDivisionError in DiscordVoiceWebSocket.average_latency | Riley Shaw | 2021-02-18 | 1 | -1/+1 |
| | | |||||
| * | Change copyright year to present | Nihaal Sangha | 2021-01-15 | 1 | -1/+1 |
| | | |||||
| * | Fix SyntaxError from PR implementing presences in member querying | Rapptz | 2021-01-01 | 1 | -1/+1 |
| | | |||||
| * | Implement presences for `Guild.query_members` | Nadir Chowdhury | 2020-12-31 | 1 | -1/+2 |
| | | |||||
| * | Add internal method to check if the websocket is currently ratelimited | Rapptz | 2020-10-17 | 1 | -0/+9 |
| | | |||||
| * | Fix disconnect when trying to move to another voice channel. | Rapptz | 2020-10-17 | 1 | -1/+2 |
| | | | | | | | | | | | Not overly proud of this implementation but this allows the library to differentiate between a 4014 that means "move to another channel" or "move nowhere". Sometimes the VOICE_STATE_UPDATE comes before the actual websocket disconnect so special care had to be taken in that case. Fix #5904 | ||||
| * | Check for zombie connections through last received payload | Rapptz | 2020-09-23 | 1 | -1/+9 |
| | | | | | | | | The previous code would check zombie connections depending on whether HEARTBEAT_ACK was received. Unfortunately when there's exceeding backpressure the connection can terminate since the HEARTBEAT_ACK is buffered very far away despite it being there, just not received yet. | ||||
| * | Use a lock for the gateway rate limiter. | Rapptz | 2020-09-23 | 1 | -5/+12 |
| | | | | | | This will allow for higher concurrency in AutoSharded situations where I can mostly "fire and forget" the chunk requests. | ||||
| * | Heartbeats bypass the rate limits for gateway | Rapptz | 2020-09-23 | 1 | -3/+14 |
| | | |||||
| * | Rewrite chunking to work with intents. | Rapptz | 2020-09-23 | 1 | -1/+1 |
| | | | | | | | | | This slows down chunking significantly for bots in a large number of guilds since it goes down from 75 guilds/request to 1 guild/request. However the logic was rewritten to fire the chunking request immediately after receiving the GUILD_CREATE rather than waiting for all the guilds in the ready stream before doing it. | ||||
| * | Add more close codes that can't be handled for reconnecting. | Rapptz | 2020-09-23 | 1 | -1/+1 |
| | | |||||
| * | Handle gateway rate limits by using a rate limiter. | Rapptz | 2020-09-23 | 1 | -0/+31 |
| | | | | | | With the new chunking changes this will become necessary and we don't want to disconnect from having too many outwards requests. | ||||
| * | Add support for guild intents | Rapptz | 2020-09-23 | 1 | -0/+3 |
| | | |||||
| * | Correct some protocol errors in v4 of voice gateway | Rapptz | 2020-09-23 | 1 | -9/+8 |
| | | |||||
| * | Guard uses of the keep alive thread in case they're None | Rapptz | 2020-09-09 | 1 | -3/+5 |
| | | | | | Fixes #5800 | ||||
| * | Terminate connection if a close code couldn't be handled | Rapptz | 2020-08-06 | 1 | -1/+1 |
| | | |||||
| * | Propagate manual close codes to socket subclass | Rapptz | 2020-08-05 | 1 | -5/+11 |
| | | | | | aiohttp seems to not set it during its state machine flow | ||||
| * | Use a subclass rather than monkey-patching for the websocket | jack1142 | 2020-07-25 | 1 | -8/+3 |
| | | |||||
| * | Add a timeout for receiving websocket messages. | Rapptz | 2020-07-25 | 1 | -4/+8 |
| | | |||||
| * | Handle Connection Reset by Peer connection errors. | Rapptz | 2020-07-25 | 1 | -4/+10 |
| | | | | | | | | | | | | | 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/+4 |
| | | | | | | | | These include: * on_shard_resumed * on_shard_connect * on_shard_disconnect | ||||
| * | Add before_identify_hook to have finer control over IDENTIFY syncing | Rapptz | 2020-07-25 | 1 | -1/+4 |
| | | |||||
| * | Fix voice websocket connections | Rapptz | 2020-07-25 | 1 | -4/+5 |
| | | |||||
| * | Rewrite gateway to use aiohttp instead of websockets | Rapptz | 2020-07-25 | 1 | -57/+75 |
| | | |||||
| * | Can't use %d in here | Rapptz | 2020-07-25 | 1 | -3/+3 |
| | | |||||
| * | Add shard ID to keep alive logger messages | Rapptz | 2020-07-25 | 1 | -9/+9 |
| | | |||||
| * | Rewrite of AutoShardedClient to prevent overlapping identify | Rapptz | 2020-07-25 | 1 | -11/+11 |
| | | | | | This is experimental and I'm unsure if it actually works | ||||
| * | Add user_ids fields for query_members | Tarek | 2020-05-29 | 1 | -2/+8 |
| | | |||||
| * | Fix timeout issues with fetching members via query_members | Rapptz | 2020-05-10 | 1 | -2/+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. | ||||
| * | Bump blocking threshold from 5 seconds to 10 seconds | Rapptz | 2020-04-14 | 1 | -3/+3 |
| | | |||||
| * | Add traceback to debug blocking issues | Rapptz | 2020-04-14 | 1 | -1/+12 |
| | | |||||
| * | Move log levels around to make INFO a little less noisy | Rapptz | 2020-04-06 | 1 | -3/+3 |
| | | |||||
| * | Fix VoiceClient.average_latency erroring when heartbeat is None | Rapptz | 2020-04-06 | 1 | -2/+4 |
| | | |||||
| * | Added VoiceClient.latency and VoiceClient.average_latency | Fwf | 2020-04-04 | 1 | -3/+23 |
| | | | | | | This also implements the heartbeating a bit more consistent to the official Discord client. | ||||
| * | 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 | ||||
| * | Downgrade unknown event logging to DEBUG rather than WARNING | Rapptz | 2020-01-26 | 1 | -1/+1 |
| | | | | | It's too noisy | ||||
| * | Bump copyright year to 2020 | Rapptz | 2020-01-19 | 1 | -1/+1 |
| | | | | | Closes #2510 | ||||
| * | Expose _ActivityTag as BaseActivity to easily refer to. | Rapptz | 2020-01-14 | 1 | -3/+3 |
| | | |||||
| * | Wait 5 seconds before IDENTIFYing with an invalidated session. | Rapptz | 2019-12-17 | 1 | -0/+1 |
| | | |||||
| * | The port is a big endian unsigned short. | Lorenzo | 2019-12-06 | 1 | -3/+1 |
| | | | | See https://github.com/discordapp/discord-api-docs/pull/1244 | ||||
| * | Fix more deprecation warnings for 3.8 | Rapptz | 2019-11-26 | 1 | -1/+1 |
| | | |||||
| * | Fix more deprecation warnings | Rapptz | 2019-11-20 | 1 | -1/+1 |
| | | |||||
| * | use proper ip for endpoint ip | Jake | 2019-07-17 | 1 | -0/+1 |
| | | |||||
| * | Add Guild.query_members to fetch members from the gateway. | Rapptz | 2019-07-15 | 1 | -0/+11 |
| | | |||||
| * | Add support for guild subscriptions. | Rapptz | 2019-07-10 | 1 | -0/+1 |
| | | |||||
| * | Improve documentation | NCPlayz | 2019-06-07 | 1 | -1/+1 |
| | | |||||
| * | Use a dict instead of getattr for parsing events. | Rapptz | 2019-05-29 | 1 | -4/+3 |
| | | | | | | | | | | | | 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. | ||||
| * | Consistent use of __all__ to prevent merge conflicts. | Rapptz | 2019-04-20 | 1 | -2/+7 |
| | | |||||
| * | Organise documentation | NCPlayz | 2019-03-19 | 1 | -2/+2 |
| | | |||||