From 3b83f60b3584cfaef9b3619053c8777b295dbfc1 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 30 Apr 2021 19:32:13 -0400 Subject: Add support for setting interaction responses --- docs/api.rst | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'docs') 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 ~~~~~~ -- cgit v1.2.3