How do I check if the bot is in a voice channel? [closed]
How do I check if my discord bot is in a voice channel?
guild.voice and it all didn’t work!
client has a
voice property that returns a
voice.connections returns a collection of
VoiceConnections, so it has a
It means, you can check if
client.voice.connections.size is greater than 0. If it is, the bot is in a voice channel.