Type alias WebhookCreateMessageData

WebhookCreateMessageData: {
    allowed_mentions?: AllowedMentions;
    attachments?: Partial<Attachment>[];
    avatar_url?: string;
    components?: ActionRow[];
    content?: string;
    embeds?: Embed[];
    files?: {
        file: Buffer;
        name: string;
    }[];
    flags?: number;
    tts?: boolean;
    username?: string;
}

Type declaration

  • Optional allowed_mentions?: AllowedMentions
  • Optional attachments?: Partial<Attachment>[]

    attachment objects with filename and description

  • Optional avatar_url?: string

    avatar url of the webhook

  • Optional components?: ActionRow[]

    Components to add to the message

  • Optional content?: string

    content of the message

  • Optional embeds?: Embed[]

    Array of embed objects

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

    Files that should be uploaded

  • Optional flags?: number

    message flags combined as a bitfield (only SUPPRESS_EMBEDS can be set)

  • Optional tts?: boolean

    send a text to speech message

  • Optional username?: string

    username to use for the webhook

Generated using TypeDoc