diff --git a/CHANGELOG.md b/CHANGELOG.md index 669dbaa..e109ede 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.8.1] - 2023-07-28 + +### Changed + +- Threads are not deleted for Accepted suggestions. + ## [1.8.0] - 2023-07-28 ### Added @@ -141,6 +147,7 @@ implemented, accepted, or rejected. - Initial release. +[1.8.1]: https://github.com/BrackeysBot/SuggestionBot/releases/tag/v1.8.1 [1.8.0]: https://github.com/BrackeysBot/SuggestionBot/releases/tag/v1.8.0 [1.7.0]: https://github.com/BrackeysBot/SuggestionBot/releases/tag/v1.7.0 [1.6.3]: https://github.com/BrackeysBot/SuggestionBot/releases/tag/v1.6.3 diff --git a/SuggestionBot/Services/SuggestionService.cs b/SuggestionBot/Services/SuggestionService.cs index ac5736a..1e125ad 100644 --- a/SuggestionBot/Services/SuggestionService.cs +++ b/SuggestionBot/Services/SuggestionService.cs @@ -693,11 +693,14 @@ public async Task UpdateSuggestionAsync(Suggestion suggestion) { await message.DeleteAllReactionsAsync().ConfigureAwait(false); - DiscordThreadChannel? thread = GetThread(suggestion); - if (thread is not null) + if (suggestion.Status != SuggestionStatus.Accepted) { - await thread.DeleteAsync("Suggestion closed").ConfigureAwait(false); - SetThread(suggestion, null); + DiscordThreadChannel? thread = GetThread(suggestion); + if (thread is not null) + { + await thread.DeleteAsync("Suggestion closed").ConfigureAwait(false); + SetThread(suggestion, null); + } } } } diff --git a/SuggestionBot/SuggestionBot.csproj b/SuggestionBot/SuggestionBot.csproj index 2568f64..3a13785 100644 --- a/SuggestionBot/SuggestionBot.csproj +++ b/SuggestionBot/SuggestionBot.csproj @@ -6,7 +6,7 @@ enable enable Linux - 1.8.0 + 1.8.1