Skip to main content

ExecuteWebhook

@discordeno/bot


Documentation / @discordeno/bot / ExecuteWebhook

Interface: ExecuteWebhook

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

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

Properties

allowedMentions?

optional allowedMentions: AllowedMentions

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

Allowed mentions for the message


appliedTags?

optional appliedTags: BigString[]

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

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

Override the default avatar of the webhook


components?

optional components: MessageComponents

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

the components to include with the message


content?

optional content: string

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

The message contents (up to 2000 characters)


embeds?

optional embeds: object[]

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

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

The contents of the files being sent


poll?

optional poll: CreatePoll

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

A poll object


threadId?

optional threadId: BigString

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

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

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

True if this is a TTS message


username?

optional username: string

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

Override the default username of the webhook


wait?

optional wait: boolean

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

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)