Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
interface ExecuteWebhook
import { type ExecuteWebhook } from "https://deno.land/x/discordeno@17.0.0/helpers/webhooks/mod.ts";

Properties

optional
wait: boolean

Waits for server confirmation of message send before response, and returns the created message body (defaults to false; when false a message that is not saved does not return an error)

optional
threadId: BigString

Send a message to the specified thread within a webhook's channel. The thread will automatically be unarchived.

optional
threadName: string

Name of the thread to create (target channel has to be type of forum channel)

optional
content: string

The message contents (up to 2000 characters)

optional
username: string

Override the default username of the webhook

optional
avatarUrl: string

Override the default avatar of the webhook

optional
tts: boolean

True if this is a TTS message

optional
file: FileContent | FileContent[]

The contents of the file being sent

optional
embeds: Embed[]

Embedded rich content

optional
allowedMentions: AllowedMentions

Allowed mentions for the message

optional
components: MessageComponents

the components to include with the message