Fix TypError again??

This commit is contained in:
eek7574 2022-11-23 15:04:47 +00:00
parent 44e55f2d4e
commit 43d85ffc40

View file

@ -360,7 +360,7 @@ class AssignmentsCog(commands.Cog):
if channel and channel.permissions_for(ctx.me).create_public_threads:
channel: discord.ForumChannel
opts = [60, 1440, 4320, 10080]
hours_away = (modal.create_kwargs["due_by"] - datetime.datetime.now()) / 3600
hours_away = (modal.create_kwargs["due_by"] - (datetime.datetime.now().timestamp())) / 3600
for option in opts:
if hours_away > option:
continue