aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_base.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-05-17 12:10:56 +0200
committerGravatar Sebastiaan Zeeff <[email protected]>2020-05-17 12:25:48 +0200
commit4e24e9c43a331ebc0f9b598f4de6c45e04216782 (patch)
tree2cc2cdeb401b39c618c597c02965fa59473d0d98 /tests/test_base.py
parentMerge pull request #519 from mathsman5133/help-refactor (diff)
Use `send_help` to invoke command help
After the refactoring of the help command, we need to use the built-in method of calling the help command: `Context.send_help`. As an argument, the qualified name (a string containing the full command path, including parents) of the command can be passed. Examples: - await ctx.send_help("reminders edit") This would send a help embed with information on `!reminders edit` to the Context. - await ctx.send_help(ctx.command.qualified_name) This would extract the qualified name of the command, which is the full command path, and send a help embed to Context. - await ctx.send_help() This will send the main "root" help embed to the Context.
Diffstat (limited to 'tests/test_base.py')
0 files changed, 0 insertions, 0 deletions