Appearance
WebhookSendOptions
Package: @erinjs/core
Options for sending a message via webhook. Aligns with WebhookMessageRequest in the API.
Properties
| Name | Type | Readonly | Optional | Description |
|---|---|---|---|---|
attachments | WebhookAttachmentMeta[] | No | Yes | Attachment metadata for files (id = index). Use when files are provided. |
avatar_url | string | No | Yes | Override the webhook's default avatar URL for this message |
content | string | No | Yes | Message text content (up to 2000 characters) |
embeds | any[] | No | Yes | Embed objects. Use EmbedBuilder or APIEmbed; EmbedBuilder is serialized automatically. |
files | MessageFileData[] | No | Yes | File attachments. When present, uses multipart/form-data (same as channel.send). |
tts | boolean | No | Yes | Text-to-speech |
username | string | No | Yes | Override the webhook's default username for this message |