BaseGuildVoiceChannel

export class BaseGuildVoiceChannel extends TextBasedChannelMixin(GuildChannel, true, [
'lastPinTimestamp',
'lastPinAt',
])
export class BaseGuildVoiceChannel extends TextBasedChannelMixin(GuildChannel, true, [
'lastPinTimestamp',
'lastPinAt',
])
Represents a voice-based guild channel on Discord.

Extends

TextBasedChannelMixin(GuildChannel, true, [ 'lastPinTimestamp', 'lastPinAt', ])
constructor(guild, data?)
Constructs a new instance of the BaseGuildVoiceChannel class
NameTypeOptionalDescription
guildGuildNoNone
dataRawGuildChannelDataYesNone
bitrate:number
The bitrate of this voice-based channel
Readonly
full:boolean
Checks if the voice-based channel is full
Readonly
joinable:boolean
Whether the channel is joinable by the client user
Readonly
The members in this voice-based channel
nsfw:boolean
If the guild considers this channel NSFW
rateLimitPerUser:number | null
The rate limit per user (slowmode) for this channel in seconds
rtcRegion:string | null
The RTC region for this voice-based channel. This region is automatically selected if null.
userLimit:number
The maximum amount of users allowed in this channel.
videoQualityMode:VideoQualityMode | null
The camera video quality mode of the channel.
createInvite(options?):Promise<Invite>
Creates an invite to this guild channel.
NameTypeOptionalDescription
optionsInviteCreateOptionsYesThe options for creating the invite
fetchInvites(cache?):Promise<Collection<string, Invite>>
Fetches a collection of invites to this guild channel.
NameTypeOptionalDescription
cachebooleanYesWhether to cache the fetched invites
setBitrate(bitrate, reason?):Promise<this>
Sets the bitrate of the channel.
NameTypeOptionalDescription
bitratenumberNoThe new bitrate
reasonstringYesReason for changing the channel's bitrate
setRTCRegion(rtcRegion, reason?):Promise<this>
Sets the RTC region of the channel.
NameTypeOptionalDescription
rtcRegionstring | nullNoThe new region of the channel. Set to null to remove a specific region for the channel
reasonstringYesThe reason for modifying this region.
setUserLimit(userLimit, reason?):Promise<this>
Sets the user limit of the channel.
NameTypeOptionalDescription
userLimitnumberNoThe new user limit
reasonstringYesReason for changing the user limit
setVideoQualityMode(videoQualityMode, reason?):Promise<this>
Sets the camera video quality mode of the channel.
NameTypeOptionalDescription
videoQualityModeVideoQualityModeNoThe new camera video quality mode.
reasonstringYesReason for changing the camera video quality mode.