Class ListItem

Represents an item of a "Lists" channel.

Hierarchy

  • Base<string>
    • ListItem

Constructors

Properties

Raw data

channelID: string

ID of the 'docs' channel.

client: Client

Bot'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 | APIMentions
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

Methods

  • Edit this item.

    Parameters

    • Optional options: {
          content?: string;
          note?: {
              content: string;
          };
      }

      Edit options.

      • Optional content?: string
      • Optional note?: {
            content: string;
        }
        • content: string

          The note of the list item

    Returns Promise<ListItem>