DiscordMessage: {
    activity?: DiscordMessageActivity;
    application?: DiscordApplication;
    application_id?: string;
    attachments: DiscordAttachment[];
    author: DiscordUser;
    channel_id: string;
    components?: DiscordMessageComponent[];
    content: string;
    edited_timestamp: string;
    embeds: DiscordEmbed[];
    flags?: number;
    id: string;
    interaction?: DiscordMessageInteraction;
    mention_channels?: DiscordChannelMention[];
    mention_everyone: boolean;
    mention_roles: DiscordRoleTags[];
    mentions: DiscordUser[];
    message_reference?: DiscordMessageReference;
    nonce?: string;
    pinned: boolean;
    position?: number;
    reactions?: DiscordReaction[];
    referenced_message?: DiscordMessage;
    role_subscription_data?: DiscordRoleSubscriptionData;
    sticker_items?: DiscordSticker[];
    stickers?: DiscordSticker[];
    thread?: DiscordChannel;
    timestamp: string;
    tts: boolean;
    type: DiscordMessageTypes;
    webhook_id?: string;
}

Represents a message in a Discord channel. See DiscordMessageTypes for a list of all message types.

See

https://discord.com/developers/docs/resources/channel#message-object-message-structure

Type declaration

Generated using TypeDoc