mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-13 17:29:50 +00:00
Add a warning in on_interaction
This commit is contained in:
parent
d047cebc35
commit
23a69144b6
@ -600,7 +600,13 @@ to handle it, which defaults to print a traceback and ignoring the exception.
|
|||||||
|
|
||||||
Called when an interaction happened.
|
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
|
.. versionadded:: 2.0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user