Represents a doc on Guilded.

Example

new Doc(channel, rawDoc);

Hierarchy

Constructors

Properties

channel: DocChannel

The doc channel the doc belongs to.

channelId: string

The ID of the channel the doc belongs to.

client: Client

The client the data model belongs to.

content: string

The content of the doc.

createdAt: Date

The date the doc was created.

createdBy: string

The ID of the user that created the doc.

editedAt?: Date

The date the doc was edited.

editedBy?: string

The ID of the user that edited the doc.

id: number

The ID of the structure.

mentions?: APIMentions

The mentions of the doc.

raw: APIDoc

The raw data of the doc.

serverId: string

The ID of the server the doc belongs to.

title: string

The title of the doc.

Accessors

Methods

  • Edit the doc.

    Returns

    The edited doc.

    Example

    doc.edit('New title', 'New content');
    

    Parameters

    • title: string

      The title of the doc.

    • content: string

      The content of the doc.

    Returns Promise<Doc>