UNPKG

slash-create-modify

Version:

Create and sync Discord slash commands!

26 lines (25 loc) 824 B
import { ResolvedChannel } from '../constants'; import { Permissions } from './permissions'; /** Represents a resolved channel object. */ export declare class Channel { /** The channel's ID */ readonly id: string; /** The channel's name */ readonly name: string; /** The channel's type */ readonly type: number; private _permissionsBitfield?; private _permissions; /** * @param data The data for the member * @param userData The data for the member's user * @param creator The instantiating creator */ constructor(data: ResolvedChannel); /** The string that mentions this channel. */ get mention(): string; /** The permissions the member has. */ get permissions(): Permissions; /** @hidden */ toString(): string; }