Skip to main content

Function: isVoiceChannel()

isVoiceChannel(channel: Nullish | ChannelTypes): channel is VoiceChannel

Checks whether a given channel is a VoiceChannel This checks for ChannelType.GuildVoice.

Parameters

ParameterTypeDescription
channelNullish | ChannelTypesThe channel to check

Returns

channel is VoiceChannel

Defined in

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