mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-09 17:59:04 +00:00
Fetch application_info on login
This allows users to no longer pass application_id when calling sync inside setup_hook
This commit is contained in:
1 parent
06c43d6772
commit
ee71366f72
3 files changed
+31
-8
No files matched your search
@@ -184,6 +184,7 @@ class ConnectionState:
|
||||
self.shard_count: Optional[int] = None
|
||||
self._ready_task: Optional[asyncio.Task] = None
|
||||
self.application_id: Optional[int] = utils._get_as_snowflake(options, 'application_id')
|
||||
self.application_flags: ApplicationFlags = utils.MISSING
|
||||
self.heartbeat_timeout: float = options.get('heartbeat_timeout', 60.0)
|
||||
self.guild_ready_timeout: float = options.get('guild_ready_timeout', 2.0)
|
||||
if self.guild_ready_timeout < 0:
|
||||
|
||||
Reference in new issue
Block a user