Currently, we're invoking our help command manually with:
await ctx.invoke(self.bot.get_command("help"), "bot")
Unfortunately, this fails after the recent refactor of the help command. The fix is to use ctx.send_help(command.qualified_name) instead.
Sentry Issue: BOT-4T
AttributeError: 'Help' object has no attribute 'channel'
File "discord/ext/commands/core.py", line 83, in wrapped
ret = await coro(*args, **kwargs)
File "bot/cogs/snekbox.py", line 292, in eval_command
await ctx.invoke(self.bot.get_command("help"), "eval")
File "discord/ext/commands/context.py", line 132, in invoke
ret = await command.callback(*arguments, **kwargs)
File "bot/decorators.py", line 149, in inner
if ctx.channel.id == destination_channel:
Error executing command invoked by <>: !e
Currently, we're invoking our help command manually with:
Unfortunately, this fails after the recent refactor of the help command. The fix is to use
ctx.send_help(command.qualified_name)instead.Sentry Issue: BOT-4T