Represents an item of a "Lists" channel.

Hierarchy (view full)

  • Base<string>
    • ListItem

Constructors

  • Parameters

    • data: {
          channelId: string;
          completedAt?: string;
          completedBy?: string;
          createdAt: string;
          createdBy: string;
          createdByWebhookId?: string;
          groupId: string;
          id: string;
          mentions?: {
              channels?: {
                  id: string;
              }[];
              everyone?: boolean;
              here?: boolean;
              roles?: {
                  id: number;
              }[];
              users?: {
                  id: string;
              }[];
          };
          message: string;
          note?: {
              content: string;
              createdAt: string;
              createdBy: string;
              mentions?: {
                  channels?: {
                      id: string;
                  }[];
                  everyone?: boolean;
                  here?: boolean;
                  roles?: {
                      id: number;
                  }[];
                  users?: {
                      id: string;
                  }[];
              };
              updatedAt?: string;
              updatedBy?: string;
          };
          parentListItemId?: string;
          serverId: string;
          updatedAt?: string;
          updatedBy?: string;
      }

      raw data.

      • channelId: string

        Channel ID Format: uuid

        The ID of the channel

      • OptionalcompletedAt?: string

        Completed at Format: date-time

        The ISO 8601 timestamp that the list item was completed at

      • OptionalcompletedBy?: string

        Completed by

        The ID of the user who completed this list item

      • createdAt: string

        Created at Format: date-time

        The ISO 8601 timestamp that the list item was created at

      • createdBy: string

        Created by

        The ID of the user who created this list item (Note: If this event has createdByWebhookId present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)

      • OptionalcreatedByWebhookId?: string

        Created by Webhook ID

        The ID of the webhook who created this list item, if it was created by a webhook

      • groupId: string

        Group ID

        The ID of the group

      • id: string

        Format: uuid

        The ID of the list item

      • Optionalmentions?: {
            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

      • message: string

        Message Format: list item markdown

        The message of the list item

      • Optionalnote?: {
            content: string;
            createdAt: string;
            createdBy: string;
            mentions?: {
                channels?: {
                    id: string;
                }[];
                everyone?: boolean;
                here?: boolean;
                roles?: {
                    id: number;
                }[];
                users?: {
                    id: string;
                }[];
            };
            updatedAt?: string;
            updatedBy?: string;
        }
        • content: string

          Note Format: long-form markdown

          The note of the list item

        • createdAt: string

          Created at Format: date-time

          The ISO 8601 timestamp that the note was created at. If this field is populated, then there's a note associated with the list item

        • createdBy: string

          Created by

          The ID of the user who created this note

        • Optionalmentions?: {
              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

        • OptionalupdatedAt?: string

          Updated at Format: date-time

          The ISO 8601 timestamp that the note was updated at, if relevant

        • OptionalupdatedBy?: string

          Updated by

          The ID of the user who updated this note

      • OptionalparentListItemId?: string

        Format: uuid

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

      • serverId: string

        Server ID

        The ID of the server

      • OptionalupdatedAt?: string

        Updated at Format: date-time

        The ISO 8601 timestamp that the list item was updated at, if relevant

      • OptionalupdatedBy?: string

        Updated by

        The ID of the user who updated this list item

    • client: Client

      client.

    Returns ListItem

Properties

_data: {
    channelId: string;
    completedAt?: string;
    completedBy?: string;
    createdAt: string;
    createdBy: string;
    createdByWebhookId?: string;
    groupId: string;
    id: string;
    mentions?: {
        channels?: {
            id: string;
        }[];
        everyone?: boolean;
        here?: boolean;
        roles?: {
            id: number;
        }[];
        users?: {
            id: string;
        }[];
    };
    message: string;
    note?: {
        content: string;
        createdAt: string;
        createdBy: string;
        mentions?: {
            channels?: {
                id: string;
            }[];
            everyone?: boolean;
            here?: boolean;
            roles?: {
                id: number;
            }[];
            users?: {
                id: string;
            }[];
        };
        updatedAt?: string;
        updatedBy?: string;
    };
    parentListItemId?: string;
    serverId: string;
    updatedAt?: string;
    updatedBy?: string;
}

Raw data

Type declaration

  • channelId: string

    Channel ID Format: uuid

    The ID of the channel

  • OptionalcompletedAt?: string

    Completed at Format: date-time

    The ISO 8601 timestamp that the list item was completed at

  • OptionalcompletedBy?: string

    Completed by

    The ID of the user who completed this list item

  • createdAt: string

    Created at Format: date-time

    The ISO 8601 timestamp that the list item was created at

  • createdBy: string

    Created by

    The ID of the user who created this list item (Note: If this event has createdByWebhookId present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)

  • OptionalcreatedByWebhookId?: string

    Created by Webhook ID

    The ID of the webhook who created this list item, if it was created by a webhook

  • groupId: string

    Group ID

    The ID of the group

  • id: string

    Format: uuid

    The ID of the list item

  • Optionalmentions?: {
        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

  • message: string

    Message Format: list item markdown

    The message of the list item

  • Optionalnote?: {
        content: string;
        createdAt: string;
        createdBy: string;
        mentions?: {
            channels?: {
                id: string;
            }[];
            everyone?: boolean;
            here?: boolean;
            roles?: {
                id: number;
            }[];
            users?: {
                id: string;
            }[];
        };
        updatedAt?: string;
        updatedBy?: string;
    }
    • content: string

      Note Format: long-form markdown

      The note of the list item

    • createdAt: string

      Created at Format: date-time

      The ISO 8601 timestamp that the note was created at. If this field is populated, then there's a note associated with the list item

    • createdBy: string

      Created by

      The ID of the user who created this note

    • Optionalmentions?: {
          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

    • OptionalupdatedAt?: string

      Updated at Format: date-time

      The ISO 8601 timestamp that the note was updated at, if relevant

    • OptionalupdatedBy?: string

      Updated by

      The ID of the user who updated this note

  • OptionalparentListItemId?: string

    Format: uuid

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

  • serverId: string

    Server ID

    The ID of the server

  • OptionalupdatedAt?: string

    Updated at Format: date-time

    The ISO 8601 timestamp that the list item was updated at, if relevant

  • OptionalupdatedBy?: string

    Updated by

    The ID of the user who updated this list item

channelID: string

ID of the 'docs' channel.

client: Client

App's client.

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

Item ID

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

  • 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)

Accessors

  • get member(): Member | Promise<Member>
  • Retrieve the member who executed this action.

    Note: If the item has been edited, the updatedBy id will be used to get you the member.

    Returns Member | Promise<Member>

Methods

  • Set this item as "complete".

    Returns Promise<void>

  • Delete this item.

    Returns Promise<void>

  • Edit this item.

    Parameters

    • Optionaloptions: {
          content?: string;
          note?: null | {
              content: string;
          };
      }

      Edit options.

      • Optionalcontent?: string
      • Optionalnote?: null | {
            content: string;
        }

    Returns Promise<ListItem>

  • Set this item as "incomplete".

    Returns Promise<void>