aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-03 19:21:00 +0300
committerGravatar ks129 <[email protected]>2020-04-03 19:21:00 +0300
commit8c33b8adaae3b40cb49c3da6fab72e1dadb3a6bc (patch)
treeb998eca42d055b5bfc6da9d72fc96a09ff52612c
parent(Reddit, discord.py 1.3.x Migrations): Replaced `help` command getting with `... (diff)
(Reminders, discord.py 1.3.x Migrations): Replaced `ctx.invoke` with direct command calling, replaced `help` command getting with `ctx.send_help`.
-rw-r--r--bot/cogs/reminders.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py
index 24c279357..d5f59dd62 100644
--- a/bot/cogs/reminders.py
+++ b/bot/cogs/reminders.py
@@ -161,7 +161,7 @@ class Reminders(Scheduler, Cog):
@group(name="remind", aliases=("reminder", "reminders"), invoke_without_command=True)
async def remind_group(self, ctx: Context, expiration: Duration, *, content: str) -> None:
"""Commands for managing your reminders."""
- await ctx.invoke(self.new_reminder, expiration=expiration, content=content)
+ await self.new_reminder(ctx, expiration=expiration, content=content)
@remind_group.command(name="new", aliases=("add", "create"))
async def new_reminder(self, ctx: Context, expiration: Duration, *, content: str) -> t.Optional[discord.Message]:
@@ -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.invoke(self.bot.get_command("help"), "reminders", "edit")
+ await ctx.send_help("reminders edit")
@edit_reminder_group.command(name="duration", aliases=("time",))
async def edit_reminder_duration(self, ctx: Context, id_: int, expiration: Duration) -> None: