Interface ListItemNoteTypes

interface ListItemNoteTypes {
    content: string;
    createdAt: Date;
    editedBy: null | string;
    editedTimestamp: null | Date;
    memberID: string;
    mentions: null | {
        channels?: {
            id: string;
        }[];
        everyone?: boolean;
        here?: boolean;
        roles?: {
            id: number;
        }[];
        users?: {
            id: string;
        }[];
    };
}

Properties

content: string

The content of the note.

createdAt: Date

Date of the note's creation.

editedBy: null | string

ID of the member who edited this note, if edited.

editedTimestamp: null | Date

Date of the note's last edition, if edited.

memberID: string

ID of the member who created this note.

mentions: null | {
    channels?: {
        id: string;
    }[];
    everyone?: boolean;
    here?: boolean;
    roles?: {
        id: number;
    }[];
    users?: {
        id: string;
    }[];
}

The mentions in this note.

Type declaration

  • Optionalchannels?: {
        id: string;
    }[]

    Channels

    Info on mentioned channels

  • Optionaleveryone?: boolean

    Everyone

    If

    was mentioned

  • Optionalhere?: boolean

    Here

    If

    was mentioned

  • Optionalroles?: {
        id: number;
    }[]

    Roles

    Info on mentioned roles

  • Optionalusers?: {
        id: string;
    }[]

    Users

    Info on mentioned users