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

Commit 23a6914

Browse files
committed
Add a warning in on_interaction
1 parent d047ceb commit 23a6914

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/api.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,13 @@ to handle it, which defaults to print a traceback and ignoring the exception.
600600

601601
Called when an interaction happened.
602602

603-
This currently happens due to slash command invocations.
603+
This currently happens due to slash command invocations or components being used.
604+
605+
.. warning::
606+
607+
This is a low level function that is not generally meant to be used.
608+
If you are working with components, consider using the callbacks associated
609+
with the :class:`~discord.ui.View` instead as it provides a nicer user experience.
604610

605611
.. versionadded:: 2.0
606612

0 commit comments

Comments
 (0)