Use correct function
This commit is contained in:
@@ -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')}`);
|
||||
|
||||
Reference in New Issue
Block a user