Function: isVoiceChannel()
isVoiceChannel(
channel:Nullish|ChannelTypes):channel is VoiceChannel
Defined in: projects/utilities/packages/discord.js-utilities/src/lib/type-guards.ts:105
Checks whether a given channel is a VoiceChannel This checks for ChannelType.GuildVoice.
Parameters
| Parameter | Type | Description |
|---|---|---|
channel | Nullish | ChannelTypes | The channel to check |
Returns
channel is VoiceChannel