Error in command <discord.app_commands.commands.Command object at 0x7f842a3940d0> triggered by <@185206201011798016>
Error: Command 'random' raised an exception: AttributeError: 'Thread' object has no attribute 'nsfw'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/discord/app_commands/commands.py", line 857, in _do_call
return await self._callback(self.binding, interaction, **params) # type: ignore
File "/app/boorubot/cogs/booru_uploads.py", line 376, in random
if not interaction.channel.nsfw:
AttributeError: 'Thread' object has no attribute 'nsfw'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/discord/app_commands/tree.py", line 1310, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/usr/local/lib/python3.10/site-packages/discord/app_commands/commands.py", line 883, in _invoke_with_namespace
return await self._do_call(interaction, transformed_values)
File "/usr/local/lib/python3.10/site-packages/discord/app_commands/commands.py", line 876, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'random' raised an exception: AttributeError: 'Thread' object has no attribute 'nsfw'
Error in command
<discord.app_commands.commands.Command object at 0x7f842a3940d0>triggered by <@185206201011798016>Error:
Command 'random' raised an exception: AttributeError: 'Thread' object has no attribute 'nsfw'