Browse Source

Add a warning in on_interaction

pull/7167/head
Rapptz 4 years ago
parent
commit
23a69144b6
  1. 8
      docs/api.rst

8
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

Loading…
Cancel
Save