From d37b91dfc66c14ee29a334337b8cf63f974d6c4a Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 24 May 2020 08:34:35 -0400 Subject: Add guild_ready_timeout to control the timeout of GUILD_CREATE stream This also fixes a timing issue where READY would take far too long to load for big bot authors. Closes #4112 --- discord/client.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'discord/client.py') diff --git a/discord/client.py b/discord/client.py index a0e27d8e..b6a54450 100644 --- a/discord/client.py +++ b/discord/client.py @@ -159,6 +159,11 @@ class Client: WebSocket in the case of not receiving a HEARTBEAT_ACK. Useful if processing the initial packets take too long to the point of disconnecting you. The default timeout is 60 seconds. + guild_ready_timeout: :class:`float` + The maximum number of seconds to wait for the GUILD_CREATE stream to end before + preparing the member cache and firing READY. The default timeout is 2 seconds. + + .. versionadded:: 1.4 guild_subscriptions: :class:`bool` Whether to dispatching of presence or typing events. Defaults to ``True``. -- cgit v1.2.3