Code:
File "bot.py", line 35, in <module>
bot.load_extension(f'cogs.{extension}')
File "/home/container/.local/lib/python3.6/site-packages/discord/ext/commands/bot.py", line 618, in load_extension
lib.setup(self)
File "/home/container/cogs/dm.py", line 213, in setup
bot.add_cog(DM(bot))
File "/home/container/.local/lib/python3.6/site-packages/discord/ext/commands/bot.py", line 543, in add_cog
raise TypeError('cogs must derive from Cog')
TypeError: cogs must derive from Cog
Failed to load extension configuration.
Traceback (most recent call last):
File "bot.py", line 35, in <module>
bot.load_extension(f'cogs.{extension}')
File "/home/container/.local/lib/python3.6/site-packages/discord/ext/commands/bot.py", line 618, in load_extension
lib.setup(self)
File "/home/container/cogs/configuration.py", line 132, in setup
bot.add_cog(Configuration(bot))
File "/home/container/.local/lib/python3.6/site-packages/discord/ext/commands/bot.py", line 543, in add_cog
raise TypeError('cogs must derive from Cog')
TypeError: cogs must derive from Cog
The files were working fine before. Not sure why this error came about. What does this error mean?
