Skip to content

Commit e3096c1

Browse files
committed
Supress embeds when deleting warnings, closes #187
1 parent d93227c commit e3096c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helpers/WarningHelpers.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public static async Task<bool> DelWarningAsync(UserWarning warning, ulong userID
312312
if (dmMessage is not null)
313313
{
314314
var guild = await Program.discord.GetGuildAsync(Program.cfgjson.ServerID);
315-
await dmMessage.ModifyAsync($"{Program.cfgjson.Emoji.Success} You were warned in **{guild.Name}**, but the warning was revoked by a Moderator.");
315+
await dmMessage.ModifyAsync(new DiscordMessageBuilder().WithContent($"{Program.cfgjson.Emoji.Success} You were warned in **{guild.Name}**, but the warning was revoked by a Moderator."), suppressEmbeds: true);
316316
}
317317

318318
Program.db.HashDelete(userID.ToString(), warning.WarningId);

0 commit comments

Comments
 (0)