Fix application_id handling (#36)
This commit is contained in:
parent
f91c6917b8
commit
09c2b3e0cf
@ -123,14 +123,10 @@ class Client:
|
|||||||
|
|
||||||
self._closed: bool = False
|
self._closed: bool = False
|
||||||
self._ready_event: asyncio.Event = asyncio.Event()
|
self._ready_event: asyncio.Event = asyncio.Event()
|
||||||
self.application_id: Optional[Snowflake] = None # For Application Commands
|
|
||||||
self.user: Optional["User"] = (
|
self.user: Optional["User"] = (
|
||||||
None # The bot's own user object, populated on READY
|
None # The bot's own user object, populated on READY
|
||||||
)
|
)
|
||||||
|
|
||||||
# Initialize AppCommandHandler
|
|
||||||
self.app_command_handler: AppCommandHandler = AppCommandHandler(client=self)
|
|
||||||
|
|
||||||
# Internal Caches
|
# Internal Caches
|
||||||
self._guilds: Dict[Snowflake, "Guild"] = {}
|
self._guilds: Dict[Snowflake, "Guild"] = {}
|
||||||
self._channels: Dict[Snowflake, "Channel"] = (
|
self._channels: Dict[Snowflake, "Channel"] = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user