From 7ad00750c6422d8f19c0fb1859b7ee69fd4fa519 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 25 Jun 2022 07:51:21 -0400 Subject: [PATCH] Add note about different client subclasses --- discord/interactions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/discord/interactions.py b/discord/interactions.py index a7d74f318..3f9be13ce 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -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