DiscordRepliableInteraction¶
Inherits: DiscordInteraction < DiscordEntity < Reference < Object
Inherited By: DiscordApplicationCommandInteraction, DiscordMessageComponentInteraction, DiscordModalSubmit
Description¶
Represent an interaction that accepts message replies and followups. Interactions are expected to be replid to within 3 seconds or they get invalidated.
Properties¶
type | name |
---|---|
bool | replied |
bool | deferred |
int | last_followup_id |
Array | followup_ids |
Methods¶
return type | signature |
---|---|
InteractionMessageCreateAction | create_reply ( String with_content="" ) |
bool | defer_reply ( bool ephemeral=false ) coroutine |
InteractionFollowupCreateAction | create_followup ( String with_content="" ) |
Message | fetch_followup ( int followup_id ) coroutine |
InteractionFollowupEditAction | edit_followup ( int followup_id ) |
bool | delete_followup ( int followup_id ) coroutine |
Message | fetch_response ( ) coroutine |
InteractionMessageEditAction | edit_response ( ) |
bool | delete_response ( ) coroutine |
Property Descriptions¶
-
bool replied
Whether this interaction has been replied to.
-
bool deferred
Whether this interaction was deferred.
-
int last_followup_id
Last followup message id.
-
Array followup_ids
List of followup message ids.
Method Descriptions¶
-
InteractionMessageCreateAction create_reply ( String with_content="" )
Create a message reply to respond to the interation.
-
bool defer_reply ( bool ephemeral=false ) coroutine
Defers the reply to the message.
-
InteractionFollowupCreateAction create_followup ( String with_content="" )
Creates a followup message to the interaction. Must reply to the interaction first.
-
Message fetch_followup ( int followup_id ) coroutine
Fetches a followup message.
-
InteractionFollowupEditAction edit_followup ( int followup_id )
Edits a followup message.
-
bool delete_followup ( int followup_id ) coroutine
Deletes a followup message.
-
Message fetch_response ( ) coroutine
Fetches the original message response of the interaction.
-
InteractionMessageEditAction edit_response ( )
Edits the original message response.
-
bool delete_response ( ) coroutine
Deletes the original message response.