Skip to content

AttributeError: 'Help' object has no attribute 'channel' #948

@sentry

Description

@sentry

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

Metadata

Metadata

Assignees

Labels

a: informationRelated to information commands: (doc, help, information, reddit, site, tags)t: bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions