UNPKG

ntqq

Version:
43 lines (42 loc) 1.11 kB
import { Client, Sendable } from ".."; export declare class Channel { private c; private channel_id; /** 子频道名 */ channel_name: string; /** 频道类型 */ channel_type: Channel.Type; /** 通知类型 */ notify_type: Channel.NotifyType; constructor(c: Client, guild_id: string, channel_id: number); _renew(channel_name: string, notify_type: Channel.NotifyType, channel_type: Channel.Type): void; /** * 发送消息 * @param channel_id 子频道id * @param message 消息内容 */ sendMsg(message: Sendable): Promise<void>; } export declare namespace Channel { enum NotifyType { /** 未知类型 */ Unknown = 0, /** 所有消息 */ AllMessages = 1, /** 不通知 */ Nothing = 2 } enum Type { /** 未知类型 */ Unknown = 0, /** 文字频道 */ Text = 1, /** 语音频道 */ Voice = 2, /** 直播频道 */ Live = 5, /** 应用频道 */ App = 6, /** 论坛频道 */ Forum = 7 } }