Commit Graph
2388 Commits
Author SHA1 Message Date
Rapptz 65f591705d Fix timeouts due to hitting the gateway rate limit 2020-09-10 05:17:52 -04:00
Rapptz 81bfdea9df Maximize the amount of concurrency while chunking.
In order to reduce our amount of backpressure we need to limit the
amount of concurrent chunk requests we can have so the gateway buffer
has some time to breathe.
2020-09-10 05:17:52 -04:00
Rapptz 2129ae29be Check for zombie connections through last received payload
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.
2020-09-10 05:17:52 -04:00
Rapptz 82fa967f3c Speed up chunking for guilds with presence intent enabled 2020-09-10 05:17:51 -04:00
Rapptz fdbe0c4f57 Maximize concurrency when chunking on AutoSharded clients 2020-09-10 05:17:51 -04:00
Rapptz 5837ad0804 Use a lock for the gateway rate limiter.
This will allow for higher concurrency in AutoSharded situations where
I can mostly "fire and forget" the chunk requests.
2020-09-10 05:17:51 -04:00
Rapptz e6fddbdbe7 Heartbeats bypass the rate limits for gateway 2020-09-10 05:17:51 -04:00
Rapptz 37760e16dd All guilds require chunking if opting into it 2020-09-10 05:17:51 -04:00
Rapptz fd5faac42b Handle user updates within GUILD_MEMBER_UPDATE 2020-09-10 05:17:50 -04:00
Rapptz eb641569f7 Rewrite chunking to work with intents.
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.
2020-09-10 05:17:50 -04:00
Rapptz 51704b10cb Add more close codes that can't be handled for reconnecting. 2020-09-10 05:17:50 -04:00
Rapptz 50a951e3ec Change unknown cache log warnings from WARNING -> DEBUG 2020-09-10 05:17:50 -04:00
Rapptz 63c454eaa0 Handle gateway rate limits by using a rate limiter.
With the new chunking changes this will become necessary and we don't
want to disconnect from having too many outwards requests.
2020-09-10 05:17:50 -04:00
Rapptz f588834b0c Add support for guild intents 2020-09-10 05:17:50 -04:00
Rapptz 4ccd9c1591 Remove caching from AutoShardedClient.shards 2020-09-10 05:17:25 -04:00
Rapptz ccdf4c4ad6 [tasks] Lazily fetch event loop if one isn't provided
Fixes #5808
2020-09-10 00:00:58 -04:00
Rapptz 450e71f086 Add a more concrete exception for 500 status codes.
Fixes #5797
2020-09-09 21:24:14 -04:00
Rapptz f8808dba9b Guard uses of the keep alive thread in case they're None
Fixes #5800
2020-09-09 21:18:41 -04:00
Rapptz e6017a2170 Handle cloudflare bans on webhook requests
Fixes #5221
2020-09-09 21:17:28 -04:00
Rapptz 425bb809ed Add logging to webhooks
Fixes #5798
2020-09-09 20:46:16 -04:00
Dan HessandGitHub a1a4a4fd7f Fix comparison for overwrites when checking if a channel is synced 2020-09-09 19:49:05 -04:00
Dan HessandGitHub 7acec502a6 [commands] Correct command removing during cog injecting 2020-09-09 19:48:00 -04:00
JoshandGitHub f8a7d3fc54 [commands] Fix exception raised in Command invoke hooks. 2020-09-09 19:47:05 -04:00
rodoviaandGitHub 15f51113c3 Fix Member.joined_at documentation 2020-09-09 19:44:33 -04:00
BluePhoenixGameandGitHub 4b18238ade Add discord.Colour classmethod dark_theme 2020-09-09 00:52:19 -04:00
khazhykandGitHub a309088ae4 Add fetch_message_fast using history endpoint 2020-09-07 23:04:11 -04:00
Skye ImandGitHub af88fc19b3 [commands] Update Bot.command() decorator docs 2020-09-07 22:29:02 -04:00
Nadir ChowdhuryandGitHub 367c4b5fd2 [docs] remove unresolved doc refs, fix attribute ref 2020-09-07 22:25:11 -04:00
khazhykandGitHub 6349d37a97 [commands] add require_var_positional 2020-09-07 22:24:48 -04:00
Rapptz 0a7e2f7c2f [commands] BadBooleanArgument -> BadBoolArgument 2020-09-04 08:47:07 -04:00
Simon BealandGitHub 6ebd2e13a1 [commands] Add subclasses of BadArgument for converters 2020-09-04 08:45:29 -04:00
Saphielle AkiyamaandGitHub 33fb13043c Classmethods all and none for AllowedMentions 2020-09-04 08:43:44 -04:00
Alex NørgaardandGitHub 5e4f3780ed Add COMMUNITY to Guild.features 2020-09-04 08:42:54 -04:00
Andres TorresandGitHub 39aa08ab93 Added __eq__ to Message 2020-09-04 08:42:31 -04:00
alkatar21andGitHub dce653a0eb Don't call close() if we've already been closed in Client.run 2020-09-01 15:24:47 -04:00
parafoxiaandGitHub ad04fbeee4 [commands] Added ColorConverter alias 2020-08-31 02:29:38 -04:00
JoshandGitHub 6baacb2c23 [tasks] Don't update _next_iteration on retry 2020-08-28 23:12:07 -04:00
Rapptz 4203e7a5a8 [commands] Use edited timestamp if provided for cooldown timing 2020-08-25 23:15:26 -04:00
parafoxiaandGitHub 1f4f010e51 Fix issue with empty overwrites
Fixes #5756.
2020-08-25 22:45:32 -04:00
Rapptz 38ebef8c16 Version bump for development purposes 2020-08-22 17:19:47 -04:00
Rapptz 11f29890dc Fix bug with Guild.by_category not showing some channels
If categories come after a child channel in the dictionary mapping for
whatever reason, then the previous code would remove it from the
mapping and set it to []. This commit aims to fix this.
2020-08-22 17:18:48 -04:00
Rapptz 45752ab354 Document merging behaviour of AllowedMentions in Messageable.send 2020-08-22 17:14:02 -04:00
NanofauxandGitHub dd408f6871 Fix hyperlink reference to PartialInviteChannel in Client 2020-08-22 16:26:24 -04:00
sinus-xandGitHub 315edd0b60 Fix letter to be consistent with the rest of the docs 2020-08-22 16:25:44 -04:00
ZomatreeandGitHub fbd57a63ab update the docs on RawReactionActionEvent.member 2020-08-22 16:25:25 -04:00
PatrickandGitHub 9121441315 Add South Korea VoiceRegion 2020-08-18 01:11:33 -04:00
Rapptz 00d39704da Version bump to 1.4.1 2020-08-09 01:12:45 -04:00
Bryan ForbesandGitHub d7aa18beed Extend __path__ with pkgutil to allow editable extensions 2020-08-07 01:11:20 -04:00
Dan HessandGitHub e04bd1b3a1 Fix error when trying to clear empty image/thumbnail in embeds 2020-08-07 01:07:54 -04:00
Rapptz 5dd8e372e4 Terminate connection if a close code couldn't be handled 2020-08-06 09:25:01 -04:00