Type alias CreateMessageData

CreateMessageData: {
    allowed_mentions?: AllowedMentions;
    attachments?: Omit<Attachment, "ephemeral" | "proxy_url" | "url" | "size">[];
    components?: ActionRow[];
    content?: string;
    embeds?: Embed[];
    files?: {
        file: Buffer;
        name: string;
    }[];
    flags?: number;
    message_reference?: MessageReference;
    sticker_ids?: string[];
    tts?: boolean;
}

Type declaration

  • Optional allowed_mentions?: AllowedMentions

    Allowed mentions for the message

  • Optional attachments?: Omit<Attachment, "ephemeral" | "proxy_url" | "url" | "size">[]

    Attachments for embeds

  • Optional components?: ActionRow[]

    Components to add to the message

  • Optional content?: string

    Content of the message

  • Optional embeds?: Embed[]

    Array of Embeds to send

  • Optional files?: {
        file: Buffer;
        name: string;
    }[]

    Files that should be uploaded

  • Optional flags?: number

    Flags (only SUPPRESS_EMBEDS can be set)

  • Optional message_reference?: MessageReference

    Reply to a message

  • Optional sticker_ids?: string[]

    Stickers to send

  • Optional tts?: boolean

    if this message is text-to-speech

Generated using TypeDoc