From 23a69144b618da3f4491561c5b7b700fdba360d2 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 4 Jul 2021 03:06:22 -0400 Subject: [PATCH] Add a warning in on_interaction --- docs/api.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/api.rst b/docs/api.rst index ee40fa1bcd9e..17a270a2119f 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