From 527cba50065103c47a5446228393227bd149c2f0 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 22 Jul 2023 14:17:30 +0100 Subject: [PATCH] feat: add jump link to staff embed --- CHANGELOG.md | 6 ++++++ SuggestionBot/Services/SuggestionService.cs | 1 + SuggestionBot/SuggestionBot.csproj | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b06e6d..2d7e30e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.3.2] - 2023-07-22 + +### Added + +- Add suggestion link to staff embed. + ## [1.3.1] - 2023-07-22 ### Added diff --git a/SuggestionBot/Services/SuggestionService.cs b/SuggestionBot/Services/SuggestionService.cs index d0c561a..7f7ddae 100644 --- a/SuggestionBot/Services/SuggestionService.cs +++ b/SuggestionBot/Services/SuggestionService.cs @@ -95,6 +95,7 @@ public DiscordEmbed CreatePrivateEmbed(Suggestion suggestion) embed.AddField("Status", $"{emoji} **{suggestion.Status.Humanize(LetterCasing.AllCaps)}**", true); embed.AddField("Author", author.Mention, true); embed.AddField("Submitted", Formatter.Timestamp(suggestion.Timestamp), true); + embed.AddField("View Suggestion", GetSuggestionLink(suggestion), true); if (suggestion.StaffMemberId.HasValue) { diff --git a/SuggestionBot/SuggestionBot.csproj b/SuggestionBot/SuggestionBot.csproj index 9c92354..ad95ef4 100644 --- a/SuggestionBot/SuggestionBot.csproj +++ b/SuggestionBot/SuggestionBot.csproj @@ -6,7 +6,7 @@ enable enable Linux - 1.3.1 + 1.3.2