Skip to main content

ExecuteWebhook

@discordeno/botDocs


Documentation / @discordeno/bot / ExecuteWebhook

Interface: ExecuteWebhook

https://discord.com/developers/docs/resources/webhook#execute-webhook

Properties

allowedMentions?

optional allowedMentions: AllowedMentions

Allowed mentions for the message

Defined in

packages/types/dist/types/discordeno.d.ts:846


appliedTags?

optional appliedTags: BigString[]

Array of tag ids to apply to the thread (requires the webhook channel to be a forum or media channel)

Defined in

packages/types/dist/types/discordeno.d.ts:832


avatarUrl?

optional avatarUrl: string

Override the default avatar of the webhook

Defined in

packages/types/dist/types/discordeno.d.ts:838


components?

optional components: MessageComponents

the components to include with the message

Defined in

packages/types/dist/types/discordeno.d.ts:848


content?

optional content: string

The message contents (up to 2000 characters)

Defined in

packages/types/dist/types/discordeno.d.ts:834


embeds?

optional embeds: object[]

Embedded rich content

Defined in

packages/types/dist/types/discordeno.d.ts:844


files?

optional files: FileContent[]

The contents of the files being sent

Defined in

packages/types/dist/types/discordeno.d.ts:842


poll?

optional poll: CreatePoll

A poll object

Defined in

packages/types/dist/types/discordeno.d.ts:850


threadId?

optional threadId: BigString

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

Defined in

packages/types/dist/types/discordeno.d.ts:828


threadName?

optional threadName: string

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

Defined in

packages/types/dist/types/discordeno.d.ts:830


tts?

optional tts: boolean

True if this is a TTS message

Defined in

packages/types/dist/types/discordeno.d.ts:840


username?

optional username: string

Override the default username of the webhook

Defined in

packages/types/dist/types/discordeno.d.ts:836


wait?

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)

Defined in

packages/types/dist/types/discordeno.d.ts:826