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