code: async def connected_check(ctx: commands.Context):
      
  
      voice = ctx.guild.voice_client
  
      if not voice or not voice.is_connected():
          raise commands.CheckFailure("Not connected to VC in this guild")
  
      return True
docs: Check whether we are connected to VC in this guild.