hoshii / Exports / Doc

Doc

Represents a doc

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Doc(data, client)

Creates a new Doc

Parameters

NameTypeDescription
dataRawDocThe raw data of the doc
clientClientThe client

Overrides

Base.constructor

Defined in

lib/structures/Doc.ts:95open in new window

Properties

channelID

channelID: string

The ID of the channel the doc is in

Defined in

lib/structures/Doc.ts:48open in new window


client

client: Client

The bot client

Inherited from

Base.client

Defined in

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


content

content: string

The content of the doc

Defined in

lib/structures/Doc.ts:53open in new window


createdAt

createdAt: Date

The date the doc was created at

Defined in

lib/structures/Doc.ts:58open in new window


createdBy

createdBy: string

The ID of the user who created the doc

Defined in

lib/structures/Doc.ts:63open in new window


id

id: number

The ID of the item

Inherited from

Base.id

Defined in

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


mentions

mentions: Mentions

The mentions in the doc

Defined in

lib/structures/Doc.ts:68open in new window


serverID

serverID: string

The ID of the server the doc is in

Defined in

lib/structures/Doc.ts:73open in new window


title

title: string

The title of the doc

Defined in

lib/structures/Doc.ts:78open in new window


updatedAt

updatedAt: Date

The date the doc was last updated

Defined in

lib/structures/Doc.ts:83open in new window


updatedBy

updatedBy: string

The ID of the user who last updated the doc

Defined in

lib/structures/Doc.ts:88open in new window

Accessors

member

get member(): ServerMember | Promise<ServerMember>

The server member who created (or updated) the doc

Returns

ServerMember | Promise<ServerMember>

Defined in

lib/structures/Doc.ts:113open in new window

Methods

delete

delete(): Promise<void>

Delete the doc

Returns

Promise<void>

Defined in

lib/structures/Doc.ts:129open in new window


edit

edit(options): Promise<Doc>

Edit the doc

Parameters

NameTypeDescription
optionsDocOptionsThe options to edit the doc with

Returns

Promise<Doc>

Defined in

lib/structures/Doc.ts:138open in new window


toJSON

toJSON(): DocData

Returns the JSON representation of the item

Returns

DocData

Overrides

Base.toJSON

Defined in

lib/structures/Doc.ts:142open in new window


update

Protected update(data): void

Parameters

NameType
dataRawDoc

Returns

void

Overrides

Base.update

Defined in

lib/structures/Doc.ts:157open in new window

Last Updated:
Contributors: Reinhardt