title: discord.ext.commands.errors.ExtensionNotFound: Extension 'cogs.help' could not be loaded
body: <p>I'm attempting to transfer all of my commands for my bot to cogs to make handling and sorting easier. I can not get my cogs to load.</p>
  
  <p>I've tried multiple different methods of loading cogs and none have worked, I've attempted using different IDEs which also didn't work.</p>
  
  <p>folder tree</p>
  
  <p><a href="https://i.stack.imgur.com/A85Mv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A85Mv.png" alt="enter image description here"></a></p>
  
  <p>help.py</p>
  
  <pre class="lang-py prettyprint-override"><code>class Help(commands.Cog):
  
      def __init__(self, client):
          self.client = client
  
      @commands.command()
      async def help(self, ctx):
          # Code #
  
  
  def setup(client):
      client.add_cog(Help(client))
  </code></pre>
  
  <p>bot.py</p>
  
  <pre class="lang-py prettyprint-override"><code>if __name__ == '__main__':
      for filename in os.listdir('./commands'):
          if filename.endswith('.py'):
              client.load_extension(f'cogs.{filename[:-3]}')
  </code></pre>
  
  <p>error</p>
  
  <pre><code>  File "C:\Users\Tyler\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\ext\commands\bot.py", line 617, in load_extension
      lib = importlib.import_module(name)
    File "C:\Users\Tyler\AppData\Local\Programs\Python\Python37\lib\importlib\__init__.py", line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "&lt;frozen importlib._bootstrap&gt;", line 1006, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 953, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed
    File "&lt;frozen importlib._bootstrap&gt;", line 1006, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 983, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 965, in _find_and_load_unlocked
  ModuleNotFoundError: No module named 'cogs'
  
  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File "C:\Users\Tyler\Desktop\Seep\bot.py", line 33, in &lt;module&gt;
      client.load_extension(f'cogs.{filename[:-3]}')
    File "C:\Users\Tyler\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\ext\commands\bot.py", line 619, in load_extension
      raise errors.ExtensionNotFound(name, e) from e
  discord.ext.commands.errors.ExtensionNotFound: Extension 'cogs.help' could not be loaded.
  </code></pre>