Skip to content

Commit

Permalink
added more content to whois
Browse files Browse the repository at this point in the history
  • Loading branch information
zaanposni committed Oct 5, 2023
1 parent 0b70bd2 commit 3f97e7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion backend/MASZ/Commands/WhoisCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ private async Task InternalWhois(IUser user, bool ephermal)
StringBuilder caseInfo = new();
foreach (ModCase modCase in cases.Take(5))
{
caseInfo.Append($"**{modCase.GetPunishment(Translator)}** ");
caseInfo.Append($"[{modCase.CaseId} - {modCase.Title.Replace("\n", " ").Truncate(50)}]");
caseInfo.Append($"({Config.GetBaseUrl()}/guilds/{modCase.GuildId}/cases/{modCase.CaseId})\n");
}
Expand All @@ -117,7 +118,7 @@ private async Task InternalWhois(IUser user, bool ephermal)
StringBuilder activeInfo = new();
foreach (ModCase modCase in activeCases.Take(5))
{
activeInfo.Append($"{modCase.GetPunishment(Translator)} ");
activeInfo.Append($"**{modCase.GetPunishment(Translator)}** ");
if (modCase.PunishedUntil != null)
{
activeInfo.Append($"({Translator.T().Until()} {modCase.PunishedUntil.Value.ToDiscordTS()}) ");
Expand Down
6 changes: 5 additions & 1 deletion nginx/static/patchnotes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"title": "Version 3.6.0",
"version": "v3.6.0",
"released_at": "2023-10-03",
"released_at": "2023-10-05",
"features": [
{
"title": "Punishment via modals.",
Expand All @@ -12,6 +12,10 @@
{
"title": "Sync new punishments.",
"description": "You can now choose to sync new bans into MASZ that were not created by MASZ. MASZ uses details in the auditlog to create a valid mocase."
},
{
"title": "Added more content to the whois embed.",
"description": "The whois embed now contains the case punishment types for all cases and not just the active ones."
}
],
"fixes": [
Expand Down

0 comments on commit 3f97e7d

Please sign in to comment.