Traceback (most recent call last):
File "/home/tiramisu/.local/lib/python3.10/site-packages/nextcord/ext/commands/bot.py", line 765, in _load_from_module_spec
spec.loader.exec_module(lib) # type: ignore
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/tiramisu/Tiramisu/cogs/admin.py", line 8, in <module>
class Admin(commands.Cog):
File "/home/tiramisu/Tiramisu/cogs/admin.py", line 42, in Admin
@main.subcommand(description="[Admin] Add and administrator", guild_ids=[TESTING_GUILD_ID])
NameError: name 'main' is not defined. Did you mean: 'min'?
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tiramisu/Tiramisu/bot.py", line 141, in <module>
bot.load_extension(f'cogs.{filename[:-3]}')
File "/home/tiramisu/.local/lib/python3.10/site-packages/nextcord/ext/commands/bot.py", line 887, in load_extension
self._load_from_module_spec(spec, name, extras=extras)
File "/home/tiramisu/.local/lib/python3.10/site-packages/nextcord/ext/commands/bot.py", line 768, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
nextcord.ext.commands.errors.ExtensionFailed: Extension 'cogs.admin' raised an error: NameError: name 'main' is not defined
trace: