Fix application_id handling (#36)

This commit is contained in:
Slipstream 2025-06-10 18:24:37 -06:00 committed by GitHub
parent f91c6917b8
commit 09c2b3e0cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,14 +123,10 @@ class Client:
self._closed: bool = False
self._ready_event: asyncio.Event = asyncio.Event()
self.application_id: Optional[Snowflake] = None # For Application Commands
self.user: Optional["User"] = (
None # The bot's own user object, populated on READY
)
# Initialize AppCommandHandler
self.app_command_handler: AppCommandHandler = AppCommandHandler(client=self)
# Internal Caches
self._guilds: Dict[Snowflake, "Guild"] = {}
self._channels: Dict[Snowflake, "Channel"] = (