Skip to content
GitHub

ResponseCall

interface in meocord/common Since 4.1.0

interface ResponseCall

One answer call an interaction got, as getResponse from meocord/testing reports it: made through respond(), or with discord.js directly on a mock interaction.

Members

method

method:
  | 'deferReply'
  | 'deferUpdate'
  | 'reply'
  | 'update'
  | 'editReply'
  | 'followUp'
  | 'deleteReply'
  | 'showModal'
  | 'message.edit'

The Discord method it used; message.edit edits the message itself, once the interaction's token has expired.

payload

payload?: unknown

What was sent, as that method received it; none for a deferral or a deletion.

error

error?: unknown

What the call rejected with, such as the DiscordAPIError for a refused call; absent when it succeeded.