Skip to content
Interfacecorev0.14.0

ResponseSent

A write Discord accepted.

interface ResponseSent<
    Method extends WriteMethod = WriteMethod
> extends AttemptedWrite<Method>

body

What the write sent, which can include text your users typed. reply, followUp, update, and edit hold the message, and its files list each file's name, alt text, and title without the bytes. showModal holds the modal. Every other verb holds null.

readonly body: WriteBody<Method>

dispatchId

The dispatch that this write belongs to, for joining against every other key it published.

readonly dispatchId: string

Inherited from:AttemptedWrite

interactionId

The interaction that this write belongs to, for joining against interactionDispatched.

readonly interactionId: string

Inherited from:AttemptedWrite

messageId

Null for every ack-only and choice-only verb.

readonly messageId: string | null

method

The verb that ran. A send reports the verb it routed to.

readonly method: Method

Inherited from:AttemptedWrite

outcome

readonly outcome: 'sent'