Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Commit

Permalink
Add a warning in on_interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Jul 4, 2021
1 parent d047ceb commit 23a6914
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 23a6914

Please sign in to comment.