From c588cca05df5002c7b99bb11cb975ac69a9a2bf8 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Mon, 23 Dec 2024 08:02:16 -0700 Subject: [PATCH] Maybe fix that --- commands/lookup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/lookup.js b/commands/lookup.js index 6ec1166..39c1d36 100644 --- a/commands/lookup.js +++ b/commands/lookup.js @@ -9,7 +9,7 @@ const lookupBanByID = async (client, interaction, options) => { const connection = await pool.getConnection() try { const row = await connection.query('SELECT * FROM bans WHERE id = ?', [banID]) - if (!row) { + if (!row || row?.length === 0) { await interaction.reply({ content: `Ban with ID ${banID} not found`, ephemeral: true }) return }