From e97c7fa886dbf5218c98fdb485b5b2039eacd4d3 Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Sun, 13 Jul 2025 15:00:41 -0400 Subject: [PATCH] Check if the user exists --- src/commands/notes.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/notes.ts b/src/commands/notes.ts index 0ace945..4596696 100644 --- a/src/commands/notes.ts +++ b/src/commands/notes.ts @@ -95,6 +95,10 @@ export default { await deferInteraction(interaction); + const user = await client.users.fetch(idToUse); + + if (!user) return interaction.editReply('User not found'); + if (subcommand == 'add') { const reason = interaction.options.getString('reason', true);