async def cog_before_invoke(self, ctx):
    ' Command before-invoke handler. '
    guild_check = (ctx.guild is not None)
    if guild_check:
        (await self.ensure_voice(ctx))
    return guild_check
Command before-invoke handler.
async def cog_before_invoke(self, ctx):
    '  '
    guild_check = (ctx.guild is not None)
    if guild_check:
        (await self.ensure_voice(ctx))
    return guild_check