diff options
| author | 2018-10-07 21:10:40 +0000 | |
|---|---|---|
| committer | 2018-10-07 21:10:40 +0000 | |
| commit | 814685c94315f0d65957da4e3c2d45a3d8a29ead (patch) | |
| tree | d02124fe32e78b734f5bcfeec85bd27017873899 /bot/cogs/moderation.py | |
| parent | Merge branch 'remind-command' into 'master' (diff) | |
| parent | All command groups now invoke the help command. (diff) | |
Merge branch 'groups-help' into 'master'
All command groups now invoke the help command.
See merge request python-discord/projects/bot!44
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/moderation.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bot/cogs/moderation.py b/bot/cogs/moderation.py index 4a0e4c0f4..588962e29 100644 --- a/bot/cogs/moderation.py +++ b/bot/cogs/moderation.py @@ -489,15 +489,19 @@ class Moderation: # region: Edit infraction commands @with_role(*MODERATION_ROLES) - @group(name='infraction', aliases=('infr', 'infractions', 'inf')) + @group(name='infraction', aliases=('infr', 'infractions', 'inf'), invoke_without_command=True) async def infraction_group(self, ctx: Context): """Infraction manipulation commands.""" + await ctx.invoke(self.bot.get_command("help"), "infraction") + @with_role(*MODERATION_ROLES) - @infraction_group.group(name='edit') + @infraction_group.group(name='edit', invoke_without_command=True) async def infraction_edit_group(self, ctx: Context): """Infraction editing commands.""" + await ctx.invoke(self.bot.get_command("help"), "infraction", "edit") + @with_role(*MODERATION_ROLES) @infraction_edit_group.command(name="duration") async def edit_duration(self, ctx, infraction_id: str, duration: str): |