fixed import order and added self to parse_timedelta method on line 41

This commit is contained in:
SeaswimmerTheFsh 2023-06-20 12:33:01 -04:00
parent 397099b27b
commit 7ae63250d0

View file

@ -1,6 +1,6 @@
from datetime import timedelta
import revolt import revolt
from revolt.ext import commands from revolt.ext import commands
from datetime import timedelta
class Moderation(commands.Cog): class Moderation(commands.Cog):
def __init__(self, bot): def __init__(self, bot):
@ -38,5 +38,5 @@ class Moderation(commands.Cog):
@commands.command() @commands.command()
async def timedeltaconvert(self, ctx, *, duration: str = "1 hour"): 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)) await ctx.send(str(parsed_time))