[BUG]: the bot is unresponsive to the command ?help #3328
Closed
Description
Bot Version
latest
How are you hosting Modmail?
Other
Error Logs
Traceback (most recent call last):
File "/home/container/.local/share/virtualenvs/modmail-wrCiwdJy/lib/python3.9/site-packages/discord/ext/commands/core.py", line 235, in wrapped
ret = await coro(*args, **kwargs)
File "/home/container/modmail/cogs/utility.py", line 52, in command_callback
return await super().command_callback(ctx, command=command)
File "/home/container/.local/share/virtualenvs/modmail-wrCiwdJy/lib/python3.9/site-packages/discord/ext/commands/help.py", line 951, in command_callback
return await self.send_bot_help(mapping)
File "/home/container/modmail/cogs/utility.py", line 123, in send_bot_help
embeds.extend(await self.format_cog_help(cog))
File "/home/container/modmail/cogs/utility.py", line 60, in format_cog_help
cog.get_commands() if not no_cog else cog,
AttributeError: 'NoneType' object has no attribute 'get_commands'
The above exception was the direct cause of the following exception: Traceback (most recent call last):
File "/home/container/.local/share/virtualenvs/modmail-wrCiwdJy/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 1350, in invoke
await ctx.command.invoke(ctx)
File "/home/container/.local/share/virtualenvs/modmail-wrCiwdJy/lib/python3.9/site-packages/discord/ext/commands/core.py", line 1029, in invoke
await injected(*ctx.args, **ctx.kwargs) # type: ignore
File "/home/container/.local/share/virtualenvs/modmail-wrCiwdJy/lib/python3.9/site-packages/discord/ext/commands/core.py", line 244, in wrapped
raise CommandInvokeError(exc) from exc discord.ext.commands.errors.CommandInvokeError: Command raised an exception:
AttributeError: 'NoneType' object has no attribute 'get_commands'
Screenshots
Traceback (most recent call last):
File "/home/container/.local/share/virtualenvs/modmail-wrCiwdJy/lib/python3.9/site-packages/discord/ext/commands/core.py", line 235, in wrapped
ret = await coro(*args, **kwargs)
File "/home/container/modmail/cogs/utility.py", line 52, in command_callback
return await super().command_callback(ctx, command=command)
File "/home/container/.local/share/virtualenvs/modmail-wrCiwdJy/lib/python3.9/site-packages/discord/ext/commands/help.py", line 951, in command_callback
return await self.send_bot_help(mapping)
File "/home/container/modmail/cogs/utility.py", line 123, in send_bot_help
embeds.extend(await self.format_cog_help(cog))
File "/home/container/modmail/cogs/utility.py", line 60, in format_cog_help
cog.get_commands() if not no_cog else cog,
AttributeError: 'NoneType' object has no attribute 'get_commands'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/container/.local/share/virtualenvs/modmail-wrCiwdJy/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 1350, in invoke
await ctx.command.invoke(ctx)
File "/home/container/.local/share/virtualenvs/modmail-wrCiwdJy/lib/python3.9/site-packages/discord/ext/commands/core.py", line 1029, in invoke
await injected(*ctx.args, **ctx.kwargs) # type: ignore
File "/home/container/.local/share/virtualenvs/modmail-wrCiwdJy/lib/python3.9/site-packages/discord/ext/commands/core.py", line 244, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'get_commands'