Skip to main content

ExecuteWebhook

@discordeno/bot


Documentation / @discordeno/bot / ExecuteWebhook

Interface: ExecuteWebhook

Defined in: packages/types/dist/types/discordeno.d.ts:837

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

Properties

allowedMentions?

optional allowedMentions: AllowedMentions

Defined in: packages/types/dist/types/discordeno.d.ts:859

Allowed mentions for the message


appliedTags?

optional appliedTags: BigString[]

Defined in: packages/types/dist/types/discordeno.d.ts:845

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


avatarUrl?

optional avatarUrl: string

Defined in: packages/types/dist/types/discordeno.d.ts:851

Override the default avatar of the webhook


components?

optional components: MessageComponents

Defined in: packages/types/dist/types/discordeno.d.ts:861

the components to include with the message


content?

optional content: string

Defined in: packages/types/dist/types/discordeno.d.ts:847

The message contents (up to 2000 characters)


embeds?

optional embeds: object[]

Defined in: packages/types/dist/types/discordeno.d.ts:857

Embedded rich content

author?

optional author: object

author.iconUrl?

optional author.iconUrl: string

author.name

author.name: string

author.proxyIconUrl?

optional author.proxyIconUrl: string

author.url?

optional author.url: string

color?

optional color: number

description?

optional description: string

fields?

optional fields: object[]

optional footer: object

footer.iconUrl?

optional footer.iconUrl: string

footer.proxyIconUrl?

optional footer.proxyIconUrl: string

footer.text

footer.text: string

image?

optional image: object

image.height?

optional image.height: number

image.proxyUrl?

optional image.proxyUrl: string

image.url

image.url: string

image.width?

optional image.width: number

provider?

optional provider: object

provider.name?

optional provider.name: string

provider.url?

optional provider.url: string

thumbnail?

optional thumbnail: object

thumbnail.height?

optional thumbnail.height: number

thumbnail.proxyUrl?

optional thumbnail.proxyUrl: string

thumbnail.url

thumbnail.url: string

thumbnail.width?

optional thumbnail.width: number

timestamp?

optional timestamp: string

title?

optional title: string

type?

optional type: EmbedTypes

url?

optional url: string

video?

optional video: object

video.height?

optional video.height: number

video.proxyUrl?

optional video.proxyUrl: string

video.url?

optional video.url: string

video.width?

optional video.width: number


files?

optional files: FileContent[]

Defined in: packages/types/dist/types/discordeno.d.ts:855

The contents of the files being sent


poll?

optional poll: CreatePoll

Defined in: packages/types/dist/types/discordeno.d.ts:863

A poll object


threadId?

optional threadId: BigString

Defined in: packages/types/dist/types/discordeno.d.ts:841

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


threadName?

optional threadName: string

Defined in: packages/types/dist/types/discordeno.d.ts:843

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


tts?

optional tts: boolean

Defined in: packages/types/dist/types/discordeno.d.ts:853

True if this is a TTS message


username?

optional username: string

Defined in: packages/types/dist/types/discordeno.d.ts:849

Override the default username of the webhook


wait?

optional wait: boolean

Defined in: packages/types/dist/types/discordeno.d.ts:839

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)