Interface JSONListItem

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

Hierarchy (View Summary)

Properties

channelID: string

ID of the 'docs' channel.

completedAt: null | Date

When the list item was marked as "completed".

completedBy: null | string

ID of the member that completed the item, if completed.

content: string

Content of the doc

createdAt: null | Date

When the item was created.

editedTimestamp: null | Date

Timestamp at which the item was updated.

guildID: string

Guild id

id: string
memberID: string

ID of the member who created the doc.

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

Type declaration

  • null
  • {
        channels?: { id: string }[];
        everyone?: boolean;
        here?: boolean;
        roles?: { id: number }[];
        users?: { id: string }[];
    }
    • 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

parentListItemID: null | string

The ID of the parent list item if this list item is nested

updatedBy: null | string

ID of the member who updated the doc. (if updated)

webhookID: null | string

ID of the webhook that created the list item (if it was created by a webhook)