Skip to content

WebhookSendOptions

Package: @erinjs/core

Options for sending a message via webhook. Aligns with WebhookMessageRequest in the API.

Properties

NameTypeReadonlyOptionalDescription
attachmentsWebhookAttachmentMeta[]NoYesAttachment metadata for files (id = index). Use when files are provided.
avatar_urlstringNoYesOverride the webhook's default avatar URL for this message
contentstringNoYesMessage text content (up to 2000 characters)
embedsany[]NoYesEmbed objects. Use EmbedBuilder or APIEmbed; EmbedBuilder is serialized automatically.
filesMessageFileData[]NoYesFile attachments. When present, uses multipart/form-data (same as channel.send).
ttsbooleanNoYesText-to-speech
usernamestringNoYesOverride the webhook's default username for this message

Released under the Apache-2.0 License.