From 4b6a413f853da3179fd696ae412032d8f182a919 Mon Sep 17 00:00:00 2001 From: powermaker450 Date: Sun, 13 Oct 2024 19:12:11 -0400 Subject: [PATCH] Wording --- src/commands/confess.ts | 2 +- src/commands/confessban.ts | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/commands/confess.ts b/src/commands/confess.ts index a7f765a..e9cff0c 100644 --- a/src/commands/confess.ts +++ b/src/commands/confess.ts @@ -52,7 +52,7 @@ export const data = new SlashCommandBuilder() export async function execute(interaction: ChatInputCommandInteraction) { // TODO: This all works as intended, but I'd like for it so be a reusable function - // instead because all of this is reused in src/main.ts:56 + // instead because all of this is used in src/main.ts try { if (dt.isBanned(interaction.guild?.id!, interaction.user.id)) { return interaction.reply({ diff --git a/src/commands/confessban.ts b/src/commands/confessban.ts index 2dcf04a..96a4e09 100644 --- a/src/commands/confessban.ts +++ b/src/commands/confessban.ts @@ -48,11 +48,7 @@ export async function execute(interaction: ChatInputCommandInteraction) { }); } - - const result = dt.addBan( - guildId, - confessionId - ); + const result = dt.addBan(guildId, confessionId); try { return result