Skip to main content

Function: canJoinVoiceChannel()

canJoinVoiceChannel(channel: VoiceBasedChannel | Nullish): boolean

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

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.