ResponseCall
interface in meocord/common Since 4.1.0
interface ResponseCallOne 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?: unknownWhat was sent, as that method received it; none for a deferral or a deletion.
error
error?: unknownWhat the call rejected with, such as the DiscordAPIError for a refused call; absent when it succeeded.