aboutsummaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-30 19:32:13 -0400
committerRapptz <[email protected]>2021-05-27 00:53:14 -0400
commit3b83f60b3584cfaef9b3619053c8777b295dbfc1 (patch)
tree8931893462012eaa976ba0b14826d33089a420f9 /docs/api.rst
parentAdd interaction related endpoints to async webhook (diff)
downloaddiscord.py-3b83f60b3584cfaef9b3619053c8777b295dbfc1.tar.xz
discord.py-3b83f60b3584cfaef9b3619053c8777b295dbfc1.zip
Add support for setting interaction responses
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst25
1 files changed, 23 insertions, 2 deletions
diff --git a/docs/api.rst b/docs/api.rst
index e1321daf..50ccfe1f 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -1188,17 +1188,30 @@ of :class:`enum.Enum`.
.. attribute:: pong
Pongs the interaction when given a ping.
+
+ See also :meth:`InteractionResponse.pong`
.. attribute:: channel_message
- Respond to a slash command with a message.
+ Respond to the interaction with a message.
+
+ See also :meth:`InteractionResponse.send_message`
.. attribute:: deferred_channel_message
- Responds to a slash command with a message at a later time.
+ Responds to the interaction with a message at a later time.
+
+ See also :meth:`InteractionResponse.defer`
.. attribute:: deferred_message_update
Acknowledges the component interaction with a promise that
the message will update later (though there is no need to actually update the message).
+ See also :meth:`InteractionResponse.defer`
+ .. attribute:: message_update
+
+ Responds to the interaction by editing the message.
+
+ See also :meth:`InteractionResponse.edit_message`
+
.. class:: ComponentType
Represents the component type of a component.
@@ -2951,6 +2964,14 @@ Interaction
.. autoclass:: Interaction()
:members:
+InteractionResponse
+~~~~~~~~~~~~~~~~~~~~
+
+.. attributetable:: InteractionResponse
+
+.. autoclass:: InteractionResponse()
+ :members:
+
Member
~~~~~~