UNPKG

guilded.ts

Version:

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

27 lines 1.06 kB
import { APIChannel } from 'guilded-api-typings'; import { Client } from '../Client'; import { Channel } from './Channel'; import { ListItemManager } from '../../managers/ListItemManager'; /** * Represents a list channel on Guilded. * @example new ListChannel(client, rawChannel); */ export declare class ListChannel extends Channel { /** The manager of items that belong to the list channel. */ readonly items: ListItemManager; /** * @param client The client the list channel belongs to. * @param raw The raw data of the list channel. * @param cache Whether to cache the list channel. */ constructor(client: Client, raw: APIChannel, cache?: boolean); /** * Create a item in the list channel. * @param message The message of the list item. * @param note The note of the list item. * @returns The created list item. * @example channel.createItem('Hello World!'); */ addItem(message: string, note?: string): Promise<import("../..").ListItem>; } //# sourceMappingURL=ListChannel.d.ts.map