mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[V3 Modlog] Fix TypeError related to 'until' (#1487)
This commit is contained in:
parent
d60fc06379
commit
f3db4b5cb0
@ -478,8 +478,8 @@ async def create_case(bot: Red, guild: discord.Guild, created_at: datetime, acti
|
||||
next_case_number = int(await get_next_case_number(guild))
|
||||
|
||||
case = Case(guild, int(created_at.timestamp()), action_type, user, moderator,
|
||||
next_case_number, reason, until, channel, amended_by=None,
|
||||
modified_at=None, message=None)
|
||||
next_case_number, reason, int(until.timestamp()) if until else None,
|
||||
channel, amended_by=None, modified_at=None, message=None)
|
||||
if hasattr(mod_channel, "send"): # Not going to be the case for tests
|
||||
use_embeds = await bot.embed_requested(mod_channel, guild.me)
|
||||
case_content = await case.message_content(use_embeds)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user