blob: a12534bee7b5b609a103c799bf3dc57658a942dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
import type { ChannelType, GatewayVoiceState } from "discord-api-types/v10";
import type { Client } from "../Client";
import { Message } from "./Message";
import { Base } from "./Base";
export declare class Channel extends Base {
/**
* channel id
*/
id: string;
/**
* channel's guild id
*/
guild_id?: string;
/**
* channel name
*/
name: string;
/**
* channel type (guild text: 0, guild voice: 2, dm: 1, group dm: 3)
*/
type: ChannelType;
/**
* (text) channel topic
*/
topic?: string;
/**
* (voice) bitrate of voice channel
*/
bitrate?: number;
/**
* (voice) user limit of voice channel (0 for none)
*/
user_limit?: number;
/**
* position of channel in channel list
*/
position?: number;
/**
* (voice) channel's voice states
*/
voice_states?: GatewayVoiceState[];
/**
* (text) channel's messages
*/
messages?: Message[];
constructor(client: Client, props: Record<string, any>);
}
|