Class DocChannel

Represents a doc channel on Guilded.

Example

new DocChannel(client, rawChannel);

Hierarchy

Constructors

Properties

archivedAt?: Date

The date the channel was archived.

archivedBy?: string

The ID of the user that archived the channel.

categoryId?: number

The ID of the category the channel belongs to.

client: Client

The client the data model belongs to.

createdAt: Date

The date the channel was created.

createdBy: string

The ID of the user that created the channel.

The manager of docs that belong to the doc channel.

editedAt?: Date

The date the channel was edited.

groupId: string

The ID of the group the channel belongs to.

id: string

The ID of the structure.

isPublic?: boolean

Whether the channel is public.

name: string

The name of the channel.

parantId?: string

The ID of the parent channel the channel belongs to.

The raw data of the channel.

serverId: string

The ID of the server the channel belongs to.

topic?: string

The topic of the channel.

The type of the channel.

The manager of webhooks that belong to the channel.

Accessors

Methods

  • Create a doc in the doc channel.

    Returns

    The created doc.

    Example

    channel.createDoc('Title', 'Content');
    

    Parameters

    • title: string

      The title of the doc.

    • content: string

      The content of the doc.

    Returns Promise<Doc>