diff --git a/moderation/moderation.py b/moderation/moderation.py index d3b4ed0..2ba9384 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -384,11 +384,11 @@ class Moderation(commands.Cog): moderator = discord.User(id=case["moderator_id"], name="Deleted User", discriminator="0") target_name = target.name if target.discriminator == "0" else f"{target.name}#{target.discriminator}" moderator_name = moderator.name if moderator.discriminator == "0" else f"{moderator.name}#{moderator.discriminator}" - embed = discord.Embed(title=f"📕 Case #{case['moderation_id']} - {str.title(case['moderation_type'])}", color=await self.bot.get_embed_color(None)) - embed.description = f"**Target:** {target_name} ({target.id})\n**Moderator:** {moderator_name} ({moderator.id})\n**Resolved:** {bool(case['resolved'])}\n**Timestamp:** <:t{case['timestamp']}> | " + embed = discord.Embed(title=f"📕 Case #{case['moderation_id']}", color=await self.bot.get_embed_color(None)) + embed.description = f"**Type:** {str.title(case['moderation_type'])}\n**Target:** {target_name} ({target.id})\n**Moderator:** {moderator_name} ({moderator.id})\n**Resolved:** {bool(case['resolved'])}\n**Timestamp:** | " if case['duration'] != 'NULL': expired = True if case["end_timestamp"] <= time.time() else False - embed.description = embed.description + f"**Duration:** {humanize.naturaldelta(case['duration'])}\n**Expired:** {expired}" + embed.description = embed.description + f"\n**Duration:** {humanize.naturaldelta(case['duration'])}\n**Expired:** {expired}" embed.add_field(name='Reason', value=f"```{case['reason']}```") if case['resolved'] == 1: embed.add_field(name='Resolve Reason', value=f"```{case['resolve_reason']}```")