From 920477b8b7e9d2e18ec7bf4d9525dead7e1f2b9a Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Sat, 7 Jun 2025 08:44:44 -0400 Subject: [PATCH] Use correct function --- src/commands/phrases.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/phrases.ts b/src/commands/phrases.ts index 72cf64d..d1ea98b 100644 --- a/src/commands/phrases.ts +++ b/src/commands/phrases.ts @@ -141,8 +141,7 @@ export default { }; async function purgePhrases(interaction: ChatInputCommandInteraction, user: User) { - const phrases: TicketPhrase[] = []; - await Database.getAllTicketPhrases(phrases.push); + const phrases: TicketPhrase[] = await Database.getTicketPhrasesFor(user.id); const count = await Database.removeAllTicketPhrasesFor(user.id); interaction.reply(`Purged the following phrases (${count}): ${phrases.map(p => `\`${p.phrase}\``).join('\n')}`);