Skip to main content

Function: canJoinVoiceChannel()

canJoinVoiceChannel(channel: VoiceBasedChannel | Nullish): boolean

Determines whether the client can join the given voice based channel.

Parameters

ParameterTypeDescription
channelVoiceBasedChannel | NullishThe channel to test the permissions from.

Returns

boolean

Whether or not the client can join the specified channel.

Source

projects/utilities/packages/discord.js-utilities/src/lib/utilities.ts:109