UNPKG

guilded.ts

Version:

A powerful NPM module that allows you to easily interact with the Guilded API.

27 lines 1.01 kB
import { APIChannel } from 'guilded-api-typings'; import { Client } from '../Client'; import { Channel } from './Channel'; import { DocManager } from '../../managers/DocManager'; /** * Represents a doc channel on Guilded. * @example new DocChannel(client, rawChannel); */ export declare class DocChannel extends Channel { /** The manager of docs that belong to the doc channel. */ readonly docs: DocManager; /** * @param client The client the doc channel belongs to. * @param raw The raw data of the doc channel. * @param cache Whether to cache the doc channel. */ constructor(client: Client, raw: APIChannel, cache?: boolean); /** * Create a doc in the doc channel. * @param title The title of the doc. * @param content The content of the doc. * @returns The created doc. * @example channel.createDoc('Title', 'Content'); */ post(title: string, content: string): Promise<import("../Doc").Doc>; } //# sourceMappingURL=DocChannel.d.ts.map