diff --git a/Hammer/Services/MessageDeletionService.cs b/Hammer/Services/MessageDeletionService.cs index 672677c..e565f06 100644 --- a/Hammer/Services/MessageDeletionService.cs +++ b/Hammer/Services/MessageDeletionService.cs @@ -1,4 +1,4 @@ -using DSharpPlus; +using DSharpPlus; using DSharpPlus.Entities; using Hammer.Configuration; using Hammer.Data; @@ -63,6 +63,7 @@ public async Task DeleteMessageAsync(DiscordMessage message, DiscordMember staff if (message is null) throw new ArgumentNullException(nameof(message)); if (staffMember is null) throw new ArgumentNullException(nameof(staffMember)); + message = await message.Channel.GetMessageAsync(message.Id).ConfigureAwait(false); DiscordGuild guild = message.Channel.Guild; if (guild != staffMember.Guild)