Doc
Represents a doc
Hierarchy
Base<number>↳
Doc
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new Doc(data, client)
Creates a new Doc
Parameters
| Name | Type | Description |
|---|---|---|
data | RawDoc | The raw data of the doc |
client | Client | The client |
Overrides
Defined in
Properties
channelID
• channelID: string
The ID of the channel the doc is in
Defined in
client
• client: Client
The bot client
Inherited from
Defined in
content
• content: string
The content of the doc
Defined in
createdAt
• createdAt: Date
The date the doc was created at
Defined in
createdBy
• createdBy: string
The ID of the user who created the doc
Defined in
id
• id: number
The ID of the item
Inherited from
Defined in
mentions
• mentions: Mentions
The mentions in the doc
Defined in
serverID
• serverID: string
The ID of the server the doc is in
Defined in
title
• title: string
The title of the doc
Defined in
updatedAt
• updatedAt: Date
The date the doc was last updated
Defined in
updatedBy
• updatedBy: string
The ID of the user who last updated the doc
Defined in
Accessors
member
• get member(): ServerMember | Promise<ServerMember>
The server member who created (or updated) the doc
Returns
ServerMember | Promise<ServerMember>
Defined in
Methods
delete
▸ delete(): Promise<void>
Delete the doc
Returns
Promise<void>
Defined in
edit
▸ edit(options): Promise<Doc>
Edit the doc
Parameters
| Name | Type | Description |
|---|---|---|
options | DocOptions | The options to edit the doc with |
Returns
Promise<Doc>
Defined in
toJSON
▸ toJSON(): DocData
Returns the JSON representation of the item
Returns
Overrides
Defined in
update
▸ Protected update(data): void
Parameters
| Name | Type |
|---|---|
data | RawDoc |
Returns
void