Add support for generic ClientT in Interaction

This commit is contained in:
Rapptz
2023-01-16 21:42:22 -05:00
parent 469f006d8b
commit bf860b0b07
4 changed files with 47 additions and 12 deletions

View File

@ -282,7 +282,7 @@ class Client:
}
self._enable_debug_events: bool = options.pop('enable_debug_events', False)
self._connection: ConnectionState = self._get_state(intents=intents, **options)
self._connection: ConnectionState[Self] = self._get_state(intents=intents, **options)
self._connection.shard_count = self.shard_count
self._closed: bool = False
self._ready: asyncio.Event = MISSING