mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fix TypError
This commit is contained in:
parent
6bbff93cc5
commit
3657d170f4
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ class AssignmentsCog(commands.Cog):
|
||||||
if channel and channel.permissions_for(ctx.me).create_public_threads:
|
if channel and channel.permissions_for(ctx.me).create_public_threads:
|
||||||
channel: discord.ForumChannel
|
channel: discord.ForumChannel
|
||||||
opts = [60, 1440, 4320, 10080]
|
opts = [60, 1440, 4320, 10080]
|
||||||
hours_away = (modal.create_kwargs["due_by"] - datetime.datetime.now()).total_seconds() / 3600
|
hours_away = (modal.create_kwargs["due_by"] - datetime.datetime.now().timestamp()) / 3600
|
||||||
for option in opts:
|
for option in opts:
|
||||||
if hours_away > option:
|
if hours_away > option:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue