I'm using self.bot in a sub command in a cog, and apparently self has no attribute bot?
Full error:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/disnake/ext/commands/slash_core.py", line 355, in invoke
await call_param_func(self.callback, inter, self.cog, **kwargs)
File "/usr/local/lib/python3.10/site-packages/disnake/ext/commands/params.py", line 1022, in call_param_func
return await maybe_coroutine(safe_call, function, **kwargs)
File "/usr/local/lib/python3.10/site-packages/disnake/utils.py", line 599, in maybe_coroutine
return await value
File "/Users/user/Desktop/Projects/Python/Discord/AIO-Bot/cogs/reminders.py", line 112, in set
bot = self.bot
AttributeError: 'NoneType' object has no attribute 'bot'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/disnake/ext/commands/interaction_bot_base.py", line 1353, in process_application_commands
await app_command.invoke(interaction)
File "/usr/local/lib/python3.10/site-packages/disnake/ext/commands/slash_core.py", line 724, in invoke
await self.invoke_children(inter)
File "/usr/local/lib/python3.10/site-packages/disnake/ext/commands/slash_core.py", line 713, in invoke_children
await subcmd.invoke(inter, **kwargs)
File "/usr/local/lib/python3.10/site-packages/disnake/ext/commands/slash_core.py", line 364, in invoke
raise CommandInvokeError(exc) from exc
disnake.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'bot'
