Interface InitialInteractionContent

interface InitialInteractionContent {
    allowedMentions?: AllowedMentions;
    components?: MessageActionRow[];
    content?: string;
    embeds?: EmbedOptions[];
    flags?: number;
    poll?: MessagePollOptions;
    tts?: boolean;
}

Hierarchy

Properties

allowedMentions?: AllowedMentions

An object that specifies the allowed mentions in this message.

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.

flags?: number

The flags to send with the message.

A poll to send. Messages with a poll cannot be edited.

Note

As of 4/18/24, attachments cannot be sent with polls.

tts?: boolean

If the message should be spoken aloud.