async def in_voice_channel(ctx):
    """Checks that the command sender is in the same voice channel as the bot."""
    voice = ctx.author.voice
    bot_voice = ctx.guild.voice_client
    if voice is None:
        return
    if bot_voice is None:
        return
    if voice.channel.name == bot_voice.channel.name:
        return True
    else:
        return False
        # raise commands.CommandError("You need to be in the channel to do that.")