diff --git a/backend/Greeting/Commands/GreeterMute.cs b/backend/Greeting/Commands/GreeterMute.cs index b9f090eed..e7620cfc7 100644 --- a/backend/Greeting/Commands/GreeterMute.cs +++ b/backend/Greeting/Commands/GreeterMute.cs @@ -56,7 +56,7 @@ public async Task MuteCommand( var modCase = new ModCase { - Title = $"GREETMUTE: {title}", + Title = title, GuildId = Context.Guild.Id, UserId = user.Id, ModId = Identity.GetCurrentUser().Id, @@ -65,7 +65,8 @@ public async Task MuteCommand( PunishmentActive = true, Severity = SeverityType.Low, PunishedUntil = DateTime.UtcNow + greetGate.PunishmentTime, - CreationType = CaseCreationType.ByCommand + CreationType = CaseCreationType.ByCommand, + Labels = ["GreetMute"] }; await RunModCase(modCase); diff --git a/backend/Punishments/Extensions/PunishmentEmbedCreator.cs b/backend/Punishments/Extensions/PunishmentEmbedCreator.cs index c04b61976..6467111b5 100644 --- a/backend/Punishments/Extensions/PunishmentEmbedCreator.cs +++ b/backend/Punishments/Extensions/PunishmentEmbedCreator.cs @@ -55,8 +55,10 @@ public static async Task CreateModCaseEmbed(this ModCase modCase, if (suspect != null) embed.WithThumbnailUrl(suspect.GetAvatarOrDefaultUrl()); - embed.AddField($"**{translator.Get().Description()}**", modCase.Description.Truncate(1000)) - .WithTitle($"#{modCase.CaseId} {modCase.Title}") + if (modCase.Title != modCase.Description) + embed.AddField($"**{translator.Get().Description()}**", modCase.Description.Truncate(1000)); + + embed.WithTitle($"#{modCase.CaseId} {modCase.Title}") .WithFooter( $"{translator.Get().UserId()}: {modCase.Id} | {translator.Get().CaseId()}: {modCase.CaseId}") .AddField($"⚖️ - {translator.Get().Punishment()}",