From eb039a94659904eb6e42564f3bddaca05c0baf3d Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Sun, 1 Jun 2025 14:42:48 -0400 Subject: [PATCH] Fix notes command --- src/commands/notes.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/commands/notes.ts b/src/commands/notes.ts index 57ddb8a..d8ef8cf 100644 --- a/src/commands/notes.ts +++ b/src/commands/notes.ts @@ -68,17 +68,15 @@ export default { await Database.putNote(user.id, reason, interaction.user.id); - if (isStaffChannel) interaction.editReply('Added note.'); - else interaction.editReply({ content: 'Added note.' }); + interaction.editReply('Added note.'); } else if (subcommand == 'remove') { const noteId = interaction.options.getInteger('note', true); if (await Database.removeNote(noteId)) { - if (isStaffChannel) interaction.editReply('Removed note.'); - else interaction.editReply({ content: 'Removed note.' }); + interaction.editReply('Removed note.'); + } else { - if (isStaffChannel) interaction.editReply('Note not found.'); - else interaction.editReply({ content: 'Note not found.' }); + interaction.editReply('Note not found.'); } } else if (subcommand == 'list') { const noteMessage = await getNoteMessage(user.id, 1);