Skip to content

Class Channel

🏭 Constructors

constructor

ts
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 optional

ts
bitrate: number

(voice) bitrate of voice channel

Defined in: packages/discord-rpc/structures/Channel.ts:30

client

ts
client: Client

the client instance Inherited from: Base.client

Defined in: packages/discord-rpc/structures/Base.ts:7

guild_id optional

ts
guild_id: string

channel's guild id

Defined in: packages/discord-rpc/structures/Channel.ts:14

id

ts
id: string

channel id

Defined in: packages/discord-rpc/structures/Channel.ts:10

messages optional

ts
messages: Message[]

(text) channel's messages

Defined in: packages/discord-rpc/structures/Channel.ts:46

name

ts
name: string

channel name

Defined in: packages/discord-rpc/structures/Channel.ts:18

position optional

ts
position: number

position of channel in channel list

Defined in: packages/discord-rpc/structures/Channel.ts:38

topic optional

ts
topic: string

(text) channel topic

Defined in: packages/discord-rpc/structures/Channel.ts:26

type

ts
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 optional

ts
user_limit: number

(voice) user limit of voice channel (0 for none)

Defined in: packages/discord-rpc/structures/Channel.ts:34

voice_states optional

ts
voice_states: GatewayVoiceState[]

(voice) channel's voice states

Defined in: packages/discord-rpc/structures/Channel.ts:42