Add a warning in on_interaction

This commit is contained in:
Rapptz 2021-07-04 03:06:22 -04:00
parent d047cebc35
commit 23a69144b6

View File

@ -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