Skip to content

Commit

Permalink
feat(api/discord): Add CS ticket ID field to embed
Browse files Browse the repository at this point in the history
This commit adds a new field "CS Ticket ID" to the Discord embed in the PostWebhookService class. The field displays the support ticket ID if it exists in the post's SupportTicketStatus. This change enhances the information displayed in the Discord webhook message.
  • Loading branch information
SakuraIsayeki committed Sep 1, 2024
1 parent 706c47c commit a69cb37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WowsKarma.Api/Services/Discord/PostWebhookService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ private static DiscordEmbedBuilder AddPostContent(DiscordEmbedBuilder embed, Pla
embed.AddField("Teamplay", GetFlairValueString(parsedFlairs?.Teamplay), true);
embed.AddField("Courtesy", GetFlairValueString(parsedFlairs?.Courtesy), true);

if (post.SupportTicketStatus.HasTicket)
{
embed.AddField("CS Ticket ID", $"`{post.SupportTicketStatus.TicketId:D}`");
}

return embed;
}
}

0 comments on commit a69cb37

Please sign in to comment.