title: How can i fix discord.ext.commands.errors.CommandNotFound: Command "image" is not found error?
body: <p>I am trying to build a Discord bot that will send a screenshot from my computer when you type .image
  I am using python</p>
  <p><strong>My code</strong></p>
  <pre><code>import Discord
  from discord.ext import commands
  client=commands.Bot(command_prefix=&quot;.&quot;)
  @client.event
  async def on_ready():
      print(&quot;Pokrenut&quot;)
  
  @client.command()
  async def image(ctx):
      await ctx.send(file=discord.File(r'C:\Users\Borna\Desktop\Programiranje2\0.png'))
  client.run(&quot;My token&quot;)
  </code></pre>
  <p>When I type .image in discord nothing happens but I get the error in terminal</p>
  <pre><code>Pokrenut
  Ignoring exception in command image:
  Traceback (most recent call last):
    File &quot;C:\Users\Borna\anaconda3\lib\site-packages\discord\ext\commands\core.py&quot;, line 85, in wrapped
      ret = await coro(*args, **kwargs)
    File &quot;C:\Users\Borna\Desktop\Programiranje2\Discord.py&quot;, line 10, in image
      await ctx.send(file=discord.File(r'C:\Users\Borna\Desktop\Programiranje2\0.png'))
  NameError: name 'discord' is not defined
  
  The above exception was the direct cause of this following exception:
  
  Traceback (most recent call last):
    File &quot;C:\Users\Borna\anaconda3\lib\site-packages\discord\ext\commands\bot.py&quot;, line 939, in invoke
      await ctx.command.invoke(ctx)
    File &quot;C:\Users\Borna\anaconda3\lib\site-packages\discord\ext\commands\core.py&quot;, line 863, in invoke
      await injected(*ctx.args, **ctx.kwargs)
    File &quot;C:\Users\Borna\anaconda3\lib\site-packages\discord\ext\commands\core.py&quot;, line 94, in wrapped
      raise CommandInvokeError(exc) from exc
  discord.ext.commands.errors.CommandInvokeError: Command raised an exception: NameError: name 'discord' is not defined
  Ignoring exception in command None:
  discord.ext.commands.errors.CommandNotFound: Command &quot;image&quot; is not found
  Ignoring exception in command None:
  discord.ext.commands.errors.CommandNotFound: Command &quot;image&quot; is not found
  </code></pre>