interface JSONDoc {
    channelID: string;
    content: string;
    createdAt: Date;
    editedTimestamp: null | Date;
    guildID: string;
    id: number;
    memberID: string;
    mentions: {
        channels?: {
            id: string;
        }[];
        everyone?: boolean;
        here?: boolean;
        roles?: {
            id: number;
        }[];
        users?: {
            id: string;
        }[];
    };
    name: string;
    updatedBy: null | string;
}

Hierarchy (view full)

Properties

channelID: string

ID of the 'docs' channel.

content: string

Content of the doc

createdAt: Date

When the doc has been created.

editedTimestamp: null | Date

When the doc has been updated.

guildID: string

Guild/server id

id: number
memberID: string

ID of the member who created this doc.

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

Doc mentions

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

name: string

Doc name

updatedBy: null | string

ID of the member who updated the doc.