fixed import order and added self to parse_timedelta method on line 41
This commit is contained in:
parent
397099b27b
commit
7ae63250d0
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue