Skip to content

Commit

Permalink
Display commands imported from plugin by default
Browse files Browse the repository at this point in the history
close #705
  • Loading branch information
aobolensk committed Mar 17, 2024
1 parent 79e1d78 commit 7c29bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def get_help_for_command(cmd_name: str) -> str:
commands = sorted([
(cmd_name, get_help_for_command(cmd_name))
for cmd_name, cmd in bc.executor.commands.items()
if args.all or cmd.impl_type != Implementation.FUNCTION])
if args.all or cmd.impl_type != Implementation.FUNCTION or cmd.module_name.startswith("plugin_")])
if execution_ctx.platform == const.BotBackend.DISCORD:
commands.insert(
0, ("Built-in commands", (
Expand Down

0 comments on commit 7c29bdf

Please sign in to comment.