From 7ae63250d0a6e1f35c2e6e8c6459153436509987 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh <102361830+SeaswimmerTheFsh@users.noreply.github.com> Date: Tue, 20 Jun 2023 12:33:01 -0400 Subject: [PATCH] fixed import order and added self to parse_timedelta method on line 41 --- moderation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moderation.py b/moderation.py index 6cc719c..3745c14 100644 --- a/moderation.py +++ b/moderation.py @@ -1,6 +1,6 @@ +from datetime import timedelta import revolt from revolt.ext import commands -from datetime import timedelta class Moderation(commands.Cog): def __init__(self, bot): @@ -38,5 +38,5 @@ class Moderation(commands.Cog): @commands.command() async def timedeltaconvert(self, ctx, *, duration: str = "1 hour"): - parsed_time = Moderation.parse_timedelta(duration) + parsed_time = Moderation.parse_timedelta(self, duration) await ctx.send(str(parsed_time))