hoshii / Exports / ListItem

ListItem

Represents a list item

Hierarchy

  • Base<string>

    ListItem

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new ListItem(data, client)

Create a new ListItem

Parameters

NameTypeDescription
dataRawListItemThe raw data of the list item
clientClientThe client

Overrides

Base.constructor

Defined in

lib/structures/ListItem.ts:126open in new window

Properties

_data

Private _data: RawListItem

The raw data of the list item

Defined in

lib/structures/ListItem.ts:59open in new window


channelID

channelID: string

The ID of the channel the list item is in

Defined in

lib/structures/ListItem.ts:64open in new window


client

client: Client

The bot client

Inherited from

Base.client

Defined in

lib/structures/Base.ts:13open in new window


completedAt

Optional completedAt: Date

The date the list item was completed at

Defined in

lib/structures/ListItem.ts:69open in new window


completedBy

Optional completedBy: string

The ID of the user who completed the list item

Defined in

lib/structures/ListItem.ts:74open in new window


createdAt

Optional createdAt: Date

The date the list item was created at

Defined in

lib/structures/ListItem.ts:79open in new window


createdBy

createdBy: string

The ID of the user who created the list item

Defined in

lib/structures/ListItem.ts:84open in new window


createdByWebhookID

Optional createdByWebhookID: string

The ID of the webhook that created the list item

Defined in

lib/structures/ListItem.ts:89open in new window


id

id: string

The ID of the item

Inherited from

Base.id

Defined in

lib/structures/Base.ts:16open in new window


mentions

Optional mentions: Mentions

The mentions in the list item

Defined in

lib/structures/ListItem.ts:94open in new window


message

message: string

The message of the list item

Defined in

lib/structures/ListItem.ts:99open in new window


parentListItemID

Optional parentListItemID: string

The ID of the parent list item

Defined in

lib/structures/ListItem.ts:104open in new window


serverID

serverID: string

The ID of the server the list item is in

Defined in

lib/structures/ListItem.ts:109open in new window


updatedAt

Optional updatedAt: Date

The date the list item was updated at

Defined in

lib/structures/ListItem.ts:114open in new window


updatedBy

Optional updatedBy: string

The ID of the user who updated the list item

Defined in

lib/structures/ListItem.ts:119open in new window

Accessors

member

get member(): ServerMember | Promise<ServerMember>

The member the list item is in

Returns

ServerMember | Promise<ServerMember>

Defined in

lib/structures/ListItem.ts:148open in new window


note

get note(): ListItemNote

The note of the list item

Returns

ListItemNote

Defined in

lib/structures/ListItem.ts:160open in new window

Methods

complete

complete(): Promise<void>

Complete the list item

Returns

Promise<void>

Defined in

lib/structures/ListItem.ts:177open in new window


delete

delete(): Promise<void>

Delete the list item

Returns

Promise<void>

Defined in

lib/structures/ListItem.ts:185open in new window


edit

edit(options): Promise<ListItem>

Edit the list item

Parameters

NameTypeDescription
optionsListItemOptionsThe options to edit the list item with

Returns

Promise<ListItem>

Defined in

lib/structures/ListItem.ts:194open in new window


toJSON

toJSON(): ListItemData

Returns the JSON representation of the item

Returns

ListItemData

Overrides

Base.toJSON

Defined in

lib/structures/ListItem.ts:198open in new window


uncomplete

uncomplete(): Promise<void>

Uncomplete the list item

Returns

Promise<void>

Defined in

lib/structures/ListItem.ts:220open in new window


update

Protected update(data): void

Parameters

NameType
dataRawListItem

Returns

void

Overrides

Base.update

Defined in

lib/structures/ListItem.ts:224open in new window

Last Updated:
Contributors: Reinhardt