title: How to check if my bot has permission to view a voice channel before trying to join it?
body: <p>I want to check if my Discord bot has permission to join a voice channel before attempting to connect to it. I'm using the Python <code>discord</code> API. I tried passing in the <code>Bot.user</code> object to <code>VoiceChannel.permissions_for()</code> function but it requires a <code>Member</code> object.</p>