aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/reminders.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-05-17 12:37:34 +0200
committerGravatar Sebastiaan Zeeff <[email protected]>2020-05-17 12:40:15 +0200
commit87cec1a863213aa23a07d29ca928766d382ee732 (patch)
tree4fc0f80ba10b8b3277de25e237bb2ae78e81ce31 /bot/cogs/reminders.py
parentUse `send_help` to invoke command help (diff)
Use `Command`-object for `send_help`
As @mathsman5133 pointed out, it's better to use the `Command`-instance we typically already have in the current context than to rely on parsing the qualified name again. The invocation is now done as: `await ctx.send_help(ctx.command)`
Diffstat (limited to '')
-rw-r--r--bot/cogs/reminders.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py
index e2289c75d..c242d2920 100644
--- a/bot/cogs/reminders.py
+++ b/bot/cogs/reminders.py
@@ -281,7 +281,7 @@ class Reminders(Scheduler, Cog):
@remind_group.group(name="edit", aliases=("change", "modify"), invoke_without_command=True)
async def edit_reminder_group(self, ctx: Context) -> None:
"""Commands for modifying your current reminders."""
- await ctx.send_help("reminders edit")
+ await ctx.send_help(ctx.command)
@edit_reminder_group.command(name="duration", aliases=("time",))
async def edit_reminder_duration(self, ctx: Context, id_: int, expiration: Duration) -> None: