Preview environment

class InteractionWebhook

export class InteractionWebhook

Represents a webhook for an Interaction

Constructors

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

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: 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.