fix(moderation): hopefully made the jump_url work
Some checks failed
Pylint / Pylint (push) Failing after 1m23s

This commit is contained in:
Seaswimmer 2023-10-05 09:27:30 -04:00
parent 32b2007c87
commit 59c8a96afc
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -195,7 +195,7 @@ class Moderation(commands.Cog):
if moderation_type in ["kicked", "banned", "unbanned"]: if moderation_type in ["kicked", "banned", "unbanned"]:
guild_name = guild.name guild_name = guild.name
else: else:
guild_name = f"[{guild.name}]({response.jump_url})" guild_name = f"[{guild.name}]({await response.jump_url})"
if moderation_type in ["tempbanned", "muted"] and duration: if moderation_type in ["tempbanned", "muted"] and duration:
embed_duration = f" for {humanize.precisedelta(duration)}" embed_duration = f" for {humanize.precisedelta(duration)}"
else: else: