How do I write a `isVoiceChannelEmpty` function?
In previous versions, the code I wrote above would be how to find out if a voice channel was empty.
However, this code no longer works in the latest version.
How can I write this function?
4 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
My version is
14.6.0
.
Is there a ThreadMemberManage identity function provided so that I can type narrow?
Well, GuildBasedChannel is the return type of the
guild.channels.fetch(channelID)
method.
I guess I should instead fetch only voice channels?
Ah, perfect, that's the identity function I was looking for, thank you.