Class Channel
🏭 Constructors
constructor
Channel(client: Client, props: Record<string, any>): ChannelParameters
- client:
Client - props:
Record<string, any>
Return Type
Channel
Defined in: packages/discord-rpc/structures/Channel.ts:48
🏷️ Properties
bitrate optional
bitrate: number(voice) bitrate of voice channel
Defined in: packages/discord-rpc/structures/Channel.ts:30
client
client: Clientthe client instance Inherited from: Base.client
Defined in: packages/discord-rpc/structures/Base.ts:7
guild_id optional
guild_id: stringchannel's guild id
Defined in: packages/discord-rpc/structures/Channel.ts:14
id
id: stringchannel id
Defined in: packages/discord-rpc/structures/Channel.ts:10
messages optional
messages: Message[](text) channel's messages
Defined in: packages/discord-rpc/structures/Channel.ts:46
name
name: stringchannel name
Defined in: packages/discord-rpc/structures/Channel.ts:18
position optional
position: numberposition of channel in channel list
Defined in: packages/discord-rpc/structures/Channel.ts:38
topic optional
topic: string(text) channel topic
Defined in: packages/discord-rpc/structures/Channel.ts:26
type
type: ChannelTypechannel type (guild text: 0, guild voice: 2, dm: 1, group dm: 3)
Defined in: packages/discord-rpc/structures/Channel.ts:22
user_limit optional
user_limit: number(voice) user limit of voice channel (0 for none)
Defined in: packages/discord-rpc/structures/Channel.ts:34
voice_states optional
voice_states: GatewayVoiceState[](voice) channel's voice states
Defined in: packages/discord-rpc/structures/Channel.ts:42