ExecuteWebhook
Documentation / @discordeno/types / ExecuteWebhook
Interface: ExecuteWebhook
Defined in: discordeno/webhook.ts:29
https://docs.discord.com/developers/resources/webhook#execute-webhook
Properties
allowedMentions?
optionalallowedMentions?:AllowedMentions
Defined in: discordeno/webhook.ts:57
Allowed mentions for the message
appliedTags?
optionalappliedTags?:BigString[]
Defined in: discordeno/webhook.ts:79
Array of tag ids to apply to the thread (requires the webhook channel to be a forum or media channel)
attachments?
optionalattachments?:Pick<DiscordAttachment,"id"|"description"|"filename">[]
Defined in: discordeno/webhook.ts:69
Attachment objects with filename and description
avatarUrl?
optionalavatarUrl?:string
Defined in: discordeno/webhook.ts:51
Override the default avatar of the webhook
components?
optionalcomponents?:MessageComponents
Defined in: discordeno/webhook.ts:65
The components to include with the message
Remarks
Application-owned webhooks can always send components.
Non-application-owned webhooks cannot send interactive components, and the components field will be ignored unless they set the with_components query param.
content?
optionalcontent?:string
Defined in: discordeno/webhook.ts:47
The message contents (up to 2000 characters)
embeds?
optionalembeds?:object[]
Defined in: discordeno/webhook.ts:55
Embedded rich content
author?
optionalauthor?:object
author.iconUrl?
optionaliconUrl?:string
author.name
name:
string
author.proxyIconUrl?
optionalproxyIconUrl?:string
author.url?
optionalurl?:string
color?
optionalcolor?:number
description?
optionaldescription?:string
fields?
optionalfields?:object[]
footer?
optionalfooter?:object
footer.iconUrl?
optionaliconUrl?:string
footer.proxyIconUrl?
optionalproxyIconUrl?:string
footer.text
text:
string
image?
optionalimage?:object
image.height?
optionalheight?:number
image.proxyUrl?
optionalproxyUrl?:string
image.url
url:
string
image.width?
optionalwidth?:number
provider?
optionalprovider?:object
provider.name?
optionalname?:string
provider.url?
optionalurl?:string
thumbnail?
optionalthumbnail?:object
thumbnail.height?
optionalheight?:number
thumbnail.proxyUrl?
optionalproxyUrl?:string
thumbnail.url
url:
string
thumbnail.width?
optionalwidth?:number
timestamp?
optionaltimestamp?:string
title?
optionaltitle?:string
type?
optionaltype?:EmbedTypes
url?
optionalurl?:string
video?
optionalvideo?:object
video.height?
optionalheight?:number
video.proxyUrl?
optionalproxyUrl?:string
video.url?
optionalurl?:string
video.width?
optionalwidth?:number
files?
optionalfiles?:FileContent[]
Defined in: discordeno/webhook.ts:67
The contents of the files being sent
flags?
optionalflags?:number
Defined in: discordeno/webhook.ts:75
Message flags combined in a bitfield
See
poll?
optionalpoll?:CreatePoll
Defined in: discordeno/webhook.ts:81
A poll object
threadId?
optionalthreadId?:BigString
Defined in: discordeno/webhook.ts:35
Send a message to the specified thread within a webhook's channel. The thread will automatically be unarchived.
threadName?
optionalthreadName?:string
Defined in: discordeno/webhook.ts:77
Name of the thread to create (target channel has to be type of forum channel)
tts?
optionaltts?:boolean
Defined in: discordeno/webhook.ts:53
True if this is a TTS message
username?
optionalusername?:string
Defined in: discordeno/webhook.ts:49
Override the default username of the webhook
wait?
optionalwait?:boolean
Defined in: discordeno/webhook.ts:33
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)
withComponents?
optionalwithComponents?:boolean
Defined in: discordeno/webhook.ts:42
Whether to respect the components field of the request.
When enabled, allows application-owned webhooks to use all components and non-owned webhooks to use non-interactive components.
Default
false