This is my code.
for filename in os.listdir('libcommands'):
if filename.endswith('.py'):
client.load_extension(f'cogs.{filename[:-3]}')
My error:
Exception has occurred: ExtensionNotFound
Extension 'cogs.ping_clear' could not be loaded.
File "C:UserssakchDesktopBotmain.py", line 15, in <module>
client.load_extension(f'cogs.{filename[:-3]}')
This is my folder where the file is present.
question from:https://stackoverflow.com/questions/65933781/extension-not-found-cogs-discord-py