text: import discord 
  from discord.ext import commands
  
  
  class Errors(commands.Cog):
      """Error messages"""
      pass
  
      @commands.Cog.listener()
      async def on_command_error(self, ctx, error):
          if isinstance(error, commands.errors.MissingRequiredArgument):
              msg = discord.Embed()
              msg.title = "Missing argument"
              msg.description = error.args[0]
              print(error.args[0])
              return await ctx.send(embed=msg)
  
          if isinstance(error, commands.errors.MissingPermissions):
              msg = discord.Embed()
              msg.title = "Missing permissions"
              msg.description = error.args[0]
              print(error.args[0])
              return await ctx.send(embed=msg)
  
          if isinstance(error, commands.errors.NSFWChannelRequired):
              msg = discord.Embed()
              msg.title = "NSFW command"
              msg.description = error.args[0]
              print(error.args[0])
              return await ctx.send(embed=msg)
      
          if isinstance(error, commands.errors.CommandInvokeError):
              msg = discord.Embed()
              msg.title = "Command Invoke Error"
              msg.description = error.args[0]
              print(error.args[0])
              return await ctx.send(embed=msg)
  
          if isinstance(error, commands.errors.CommandNotFound):
              msg = discord.Embed()
              msg.title = "Command not found"
              msg.description = error.args[0]
              print(error.args[0])
              return await ctx.send(embed=msg)
  
          if isinstance(error, commands.errors.BadArgument):
              msg = discord.Embed()
              msg.title = "Bad argument"
              msg.description = error.args[0]
              print(error.args[0])
              return await ctx.send(embed=msg)
  
          if isinstance(error, commands.errors.NotOwner):
              msg = discord.Embed()
              msg.title = "You are not owner"
              msg.description = error.args[0]
              print(error.args[0])
              return await ctx.send(embed=msg)
  
  
  
  def setup(client):
      client.add_cog(Errors(client))