InteractionWebhook

export class InteractionWebhook
export class InteractionWebhook
Represents a webhook for an Interaction
constructor(client, id, token)
NameTypeOptionalDescription
clientClient<true>NoNone
idSnowflakeNoNone
tokenstringNoNone
Readonly
client:Client<true>
The client that instantiated the interaction webhook
The webhook's id
token:string
Readonly
url:string
The URL of this webhook
deleteMessage(message, threadId?):Promise<void>
Delete a message that was sent by this webhook.
NameTypeOptionalDescription
messageMessageResolvable | '@original'NoThe message to delete
threadIdSnowflakeYesThe id of the thread this message belongs to
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