InteractionRESTAPI¶
Inherits: DiscordRESTAPI < Reference < Object
Description¶
Interaction REST API implementation.
Methods¶
return type | signature |
---|---|
bool | create_response ( int interaction_id, String interaction_token, Dictionary params ) coroutine |
Message | get_original_response ( int application_id, String interaction_token ) coroutine |
Message | edit_original_response ( int application_id, String interaction_token, Dictionary params ) coroutine |
bool | delete_original_response ( int application_id, String interaction_token ) coroutine |
Message | create_followup_message ( int application_id, String interaction_token, Dictionary params ) coroutine |
Message | get_followup_message ( int application_id, String interaction_token, int message_id ) coroutine |
Message | edit_followup_message ( int application_id, String interaction_token, int message_id, Dictionary params ) coroutine |
bool | delete_followup_message ( int application_id, String interaction_token, int message_id ) coroutine |
Method Descriptions¶
-
InteractionRESTAPI InteractionRESTAPI ( String _token, DiscordRESTRequester _requester, BaseDiscordEntityManager _entity_manager )
Constructs a new
InteractionRESTAPI
object.
-
bool create_response ( int interaction_id, String interaction_token, Dictionary params ) coroutine
Create a response to an interaction from the gateway. Returns
true
on success.
https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response
-
Message get_original_response ( int application_id, String interaction_token ) coroutine
Returns the initial interaction response.
https://discord.com/developers/docs/interactions/receiving-and-responding#get-original-interaction-response
-
Message edit_original_response ( int application_id, String interaction_token, Dictionary params ) coroutine
Edits the initial interaction response.
https://discord.com/developers/docs/interactions/receiving-and-responding#edit-original-interaction-response
-
bool delete_original_response ( int application_id, String interaction_token ) coroutine
Deletes the initial interaction response. Returns
true
on success.
https://discord.com/developers/docs/interactions/receiving-and-responding#delete-original-interaction-response
-
Message create_followup_message ( int application_id, String interaction_token, Dictionary params ) coroutine
Creates a followup message for an interaction.
https://discord.com/developers/docs/interactions/receiving-and-responding#create-followup-message
-
Message get_followup_message ( int application_id, String interaction_token, int message_id ) coroutine
Returns a followup message for an interaction.
https://discord.com/developers/docs/interactions/receiving-and-responding#get-followup-message
-
Message edit_followup_message ( int application_id, String interaction_token, int message_id, Dictionary params ) coroutine
Edits a followup message for an Interaction.
https://discord.com/developers/docs/interactions/receiving-and-responding#edit-followup-message
-
bool delete_followup_message ( int application_id, String interaction_token, int message_id ) coroutine
Deletes a followup message for an Interaction.
https://discord.com/developers/docs/interactions/receiving-and-responding#delete-followup-message