Add note about different client subclasses

This commit is contained in:
Rapptz 2022-06-25 07:51:21 -04:00
parent 1335937288
commit 7ad00750c6

View File

@ -200,7 +200,11 @@ class Interaction:
@property
def client(self) -> Client:
""":class:`Client`: The client that is handling this interaction."""
""":class:`Client`: The client that is handling this interaction.
Note that :class:`AutoShardedClient`, :class:`~.commands.Bot`, and
:class:`~.commands.AutoShardedBot` are all subclasses of client.
"""
return self._client
@property