Commit Graph

2699 Commits

Author SHA1 Message Date
82fa967f3c Speed up chunking for guilds with presence intent enabled 2020-09-10 05:17:51 -04:00
fdbe0c4f57 Maximize concurrency when chunking on AutoSharded clients 2020-09-10 05:17:51 -04:00
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
e6fddbdbe7 Heartbeats bypass the rate limits for gateway 2020-09-10 05:17:51 -04:00
37760e16dd All guilds require chunking if opting into it 2020-09-10 05:17:51 -04:00
fd5faac42b Handle user updates within GUILD_MEMBER_UPDATE 2020-09-10 05:17:50 -04:00
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
51704b10cb Add more close codes that can't be handled for reconnecting. 2020-09-10 05:17:50 -04:00
50a951e3ec Change unknown cache log warnings from WARNING -> DEBUG 2020-09-10 05:17:50 -04:00
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
f588834b0c Add support for guild intents 2020-09-10 05:17:50 -04:00
4ccd9c1591 Remove caching from AutoShardedClient.shards 2020-09-10 05:17:25 -04:00
ccdf4c4ad6 [tasks] Lazily fetch event loop if one isn't provided
Fixes #5808
2020-09-10 00:00:58 -04:00
450e71f086 Add a more concrete exception for 500 status codes.
Fixes #5797
2020-09-09 21:24:14 -04:00
f8808dba9b Guard uses of the keep alive thread in case they're None
Fixes #5800
2020-09-09 21:18:41 -04:00
e6017a2170 Handle cloudflare bans on webhook requests
Fixes #5221
2020-09-09 21:17:28 -04:00
425bb809ed Add logging to webhooks
Fixes #5798
2020-09-09 20:46:16 -04:00
a1a4a4fd7f Fix comparison for overwrites when checking if a channel is synced 2020-09-09 19:49:05 -04:00
7acec502a6 [commands] Correct command removing during cog injecting 2020-09-09 19:48:00 -04:00
f8a7d3fc54 [commands] Fix exception raised in Command invoke hooks. 2020-09-09 19:47:05 -04:00
15f51113c3 Fix Member.joined_at documentation 2020-09-09 19:44:33 -04:00
4b18238ade Add discord.Colour classmethod dark_theme 2020-09-09 00:52:19 -04:00
a309088ae4 Add fetch_message_fast using history endpoint 2020-09-07 23:04:11 -04:00
af88fc19b3 [commands] Update Bot.command() decorator docs 2020-09-07 22:29:02 -04:00
367c4b5fd2 [docs] remove unresolved doc refs, fix attribute ref 2020-09-07 22:25:11 -04:00
6349d37a97 [commands] add require_var_positional 2020-09-07 22:24:48 -04:00
a668623d9f Make admonition-title un-selectable.
All admonition-title's should now be un-selectable.
2020-09-06 00:24:14 -04:00
0a7e2f7c2f [commands] BadBooleanArgument -> BadBoolArgument 2020-09-04 08:47:07 -04:00
6ebd2e13a1 [commands] Add subclasses of BadArgument for converters 2020-09-04 08:45:29 -04:00
33fb13043c Classmethods all and none for AllowedMentions 2020-09-04 08:43:44 -04:00
5e4f3780ed Add COMMUNITY to Guild.features 2020-09-04 08:42:54 -04:00
39aa08ab93 Added __eq__ to Message 2020-09-04 08:42:31 -04:00
dce653a0eb Don't call close() if we've already been closed in Client.run 2020-09-01 15:24:47 -04:00
0b020fc339 Add sidebar animation when collapsing 2020-09-01 15:24:03 -04:00
0124abb030 Thicken admonition borders a little 2020-08-31 02:35:38 -04:00
ad04fbeee4 [commands] Added ColorConverter alias 2020-08-31 02:29:38 -04:00
26cce4fb78 [matrix] Hide hamburger menu on pages without sidebar 2020-08-31 02:27:32 -04:00
3b90e2e74e [matrix] Fix JS errors on search results page 2020-08-30 02:55:53 -04:00
512d9aaccb Another take at fixing methods showing up under "Attributes" 2020-08-29 22:22:45 -04:00
39f1f9098e Fix collapsible sidebar not working 2020-08-29 20:39:25 -04:00
994de512cb Use the constructed value in the settings 2020-08-29 20:34:50 -04:00
597f7e30b8 [matrix] Update model styles 2020-08-29 20:19:49 -04:00
575435b4c9 Fix tooltips in settings and make strings translatable 2020-08-29 20:10:54 -04:00
7d8dae735d Move setting load to DOMContentLoaded 2020-08-29 19:56:28 -04:00
3ce7ab2fc4 [matrix] Refactor JS & add searchbar to mobile. 2020-08-29 19:17:44 -04:00
2d441cc533 Reduce CSS variable usage 2020-08-29 04:30:35 -04:00
7fec153cd7 Fix versionmodified not being italics 2020-08-29 04:14:08 -04:00
1aa93e70ac Change colour scheme and admonition colours
This should make both themes finally look decent
2020-08-29 04:11:05 -04:00
42498d26f7 [matrix] Set theme to system preferred by default 2020-08-29 03:57:17 -04:00
a9d6d90a8f [matrix] collapsible sidebar headings 2020-08-28 23:13:20 -04:00