InteractionWebhook

export class InteractionWebhook extends PartialWebhookMixin()
export class InteractionWebhook extends PartialWebhookMixin()
Represents a webhook for an Interaction

Extends

PartialWebhookMixin()
constructor(client, id, token)
NameTypeOptionalDescription
clientClient<true>NoNone
idSnowflakeNoNone
tokenstringNoNone
token:string
editMessage(message, options):Promise<Message>
Edits a message that was sent by this webhook.
Returns
Returns the message edited by this webhook
NameTypeOptionalDescription
messageMessageResolvable | '@original'NoThe message to edit
optionsstring | MessagePayload | WebhookMessageEditOptionsNoThe options to provide
fetchMessage(message):Promise<Message>
Gets a message that was sent by this webhook.
Returns
Returns the message sent by this webhook
NameTypeOptionalDescription
messageSnowflake | '@original'NoThe id of the message to fetch
send(options):Promise<Message>
Sends a message with this webhook.
NameTypeOptionalDescription
optionsstring | MessagePayload | InteractionReplyOptionsNoThe content for the reply