From a2852bf4545c73b7e9a6a83f43646aa782f15dcf Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Sat, 7 Jun 2025 08:06:30 -0400 Subject: [PATCH] List purged phrases --- src/commands/phrases.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/phrases.ts b/src/commands/phrases.ts index 5b9194e..72cf64d 100644 --- a/src/commands/phrases.ts +++ b/src/commands/phrases.ts @@ -141,9 +141,11 @@ export default { }; async function purgePhrases(interaction: ChatInputCommandInteraction, user: User) { + const phrases: TicketPhrase[] = []; + await Database.getAllTicketPhrases(phrases.push); const count = await Database.removeAllTicketPhrasesFor(user.id); - interaction.reply(`${count} phrases purged.`); + interaction.reply(`Purged the following phrases (${count}): ${phrases.map(p => `\`${p.phrase}\``).join('\n')}`); } async function dumpPhrases(interaction: ChatInputCommandInteraction) {