title: Keep getting the error "command is not found"
body: <pre><code>class ModCommands(commands.Cog):
      def __init__(self, bot):
          self.bot = bot
      
      def create_command_embed(self, ctx):
        moderator=ctx.author.display_name
        disc_server=ctx.guild_name
        reason= None
        ban_dm_embed=create_command_embed(self, ctx,
        &quot;**Banned**&quot;, 
        &quot;https://discord.gg/UQVB7hVTav&quot;,
        f&quot;You were banned from {disc_server}&quot;,
        discord.Color.red(),
        f&quot;Moderator{moderator}&quot;,
        ctx.author.avatar_url,
        f&quot;`Reason: {reason}`&quot;,
        &quot;`Case Number: [COMING SOON]`&quot;,
        '\u200b' &quot;Spoon Bot&quot;,
        &quot;https://i.imgur.com/gj4Veji.png&quot;)
        return ban_dm_embed
  
      @commands.command()
      async def ban(self, ctx):
          await ctx.message.reply(ban_dm_embed)
  </code></pre>
  <p>Whenever I run the code I get the error:</p>
  <blockquote>
  <p>Command 'ban' is not found</p>
  </blockquote>
  <p>When I type &quot;ban&quot; in discord. I'm using an embed handler to make my embeds so that's why I use <code>create_command_embed</code>. I want to try make the embed before doing the async def as I think it looks cleaner.</p>
  <p>I'm using cogs for my bot.</p>