Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discord_rpc_deno/src/structures/Channel.ts>Channel

port of @xhayper/discord-rpc to deno
Go to Latest
class Channel
extends Base
import { Channel } from "https://deno.land/x/discord_rpc_deno@1.0.8/src/structures/Channel.ts";

Constructors

new
Channel(client: Client, props: Record<string, any>)

Properties

optional
bitrate: number

(voice) bitrate of voice channel

optional
guild_id: string

channel's guild id

id: string

channel id

optional
messages: Message[]

(text) channel's messages

name: string

channel name

optional
position: number

position of channel in channel list

optional
topic: string

(text) channel topic

channel type (guild text: 0, guild voice: 2, dm: 1, group dm: 3)

optional
user_limit: number

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

optional
voice_states: GatewayVoiceState[]

(voice) channel's voice states