Skip to main content

Function: isVoiceBasedChannel()

isVoiceBasedChannel(channel: Channel | Nullish): channel is VoiceBasedChannel

Checks whether a given channel is a VoiceBasedChannel. This checks for Channel.isVoiceBased().

Parameters

ParameterTypeDescription
channelChannel | NullishThe channel to check.

Returns

channel is VoiceBasedChannel

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/type-guards.ts:170