aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-07-04 03:06:22 -0400
committerRapptz <[email protected]>2021-07-04 03:06:36 -0400
commit23a69144b618da3f4491561c5b7b700fdba360d2 (patch)
treed43392f3e77d16b9c890d17c254df7318ed02a3f /docs
parent[commands] Remove window reassignment when tokens reach 0 (diff)
downloaddiscord.py-23a69144b618da3f4491561c5b7b700fdba360d2.tar.xz
discord.py-23a69144b618da3f4491561c5b7b700fdba360d2.zip
Add a warning in on_interaction
Diffstat (limited to 'docs')
-rw-r--r--docs/api.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/api.rst b/docs/api.rst
index ee40fa1b..17a270a2 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -600,7 +600,13 @@ to handle it, which defaults to print a traceback and ignoring the exception.
Called when an interaction happened.
- This currently happens due to slash command invocations.
+ This currently happens due to slash command invocations or components being used.
+
+ .. warning::
+
+ This is a low level function that is not generally meant to be used.
+ If you are working with components, consider using the callbacks associated
+ with the :class:`~discord.ui.View` instead as it provides a nicer user experience.
.. versionadded:: 2.0