class InteractionWebhook

extends

PartialWebhookMixin()
export class InteractionWebhook extends PartialWebhookMixin()

Represents a webhook for an Interaction

Constructors

constructor(
client: Client<true>
token: string
)

readonly
client : Client

The client that instantiated the interaction webhook

id : Snowflake

The webhook's id

token : string

readonly
url : string

The URL of this webhook

deleteMessage(
message: MessageResolvable | '@original'
threadId?: Snowflake
) : Promise<void>

Delete a message that was sent by this webhook.

editMessage() : Promise<Message>

Edits a message that was sent by this webhook.

Returns: Returns the message edited by this webhook

fetchMessage(
message: Snowflake | '@original'
) : Promise<Message>

Gets a message that was sent by this webhook.

Returns: Returns the message sent by this webhook

Sends a message with this webhook.