Interface ExecuteWebhookWaitOptions

interface ExecuteWebhookWaitOptions {
    allowedMentions?: AllowedMentions;
    attachments?: MessageAttachment[];
    avatarURL?: string;
    components?: MessageActionRow[];
    content?: string;
    embeds?: EmbedOptions[];
    files?: File[];
    flags?: number;
    poll?: MessagePollOptions;
    threadID?: string;
    threadName?: string;
    tts?: boolean;
    username?: string;
    wait: true;
}

Hierarchy

Properties

allowedMentions?: AllowedMentions

An object that specifies the allowed mentions in this message.

attachments?: MessageAttachment[]

An array of partial attachments related to the sent files.

avatarURL?: string

The url of an avatar to use.

components?: MessageActionRow[]

An array of components to send. snake_case keys should be converted to camelCase, or passed through Util#rawMessageComponents.

content?: string

The content of the message.

embeds?: EmbedOptions[]

An array of embeds to send. snake_case keys should be converted to camelCase, or passed through Util#rawEmbeds.

files?: File[]

The files to send.

flags?: number

The flags to send with the message.

A poll to send.

Note

As of 3/22/24:

  • content, components, and many other fields cannot be sent alongside a poll.
    • This means we cannot set allowedMentions. If in the future content can be sent alongside a poll, allowedMentions will not be set automatically, and must be set manually.
  • Messages with a poll cannot be edited.
threadID?: string

The id of the thread to send the message to.

threadName?: string

The name of the thread to create (forum channels).

tts?: boolean

If the message should be spoken aloud.

username?: string

The username to use.

wait: true