From e1f2c4b8e68580be09348faf2191fc23296b5342 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 5 Oct 2023 09:57:14 -0400 Subject: [PATCH] fix(moderation): fixed some issues with tdc --- moderation/moderation.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index f1e49a8..f51bf3e 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -355,13 +355,13 @@ class Moderation(commands.Cog): await interaction.response.send_message(send, ephemeral=True) @commands.command(aliases=["tdc"]) - async def timedeltaconvert(self, ctx: commands.Context, duration: str): - """This command converts a duration to a [`timedelta`]() Python object. + async def timedeltaconvert(self, ctx: commands.Context, *, duration: str): + """This command converts a duration to a [`timedelta`](https://docs.python.org/3/library/datetime.html#datetime.timedelta) Python object. - ## Example usage - `-timedeltaconvert 1 day 15hr 82 minutes 52` - ## Output - `1 day, 16:22:53`""" + **Example usage** + `-timedeltaconvert 1 day 15hr 82 minutes 52s` + **Output** + `1 day, 16:22:52`""" try: parsed_time = parse(duration, as_timedelta=True, raise_exception=True) await ctx.send(f"`{str(parsed_time)}`")