From faa65af54cd872ad9a131504a558a5da314060f0 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Tue, 11 Jun 2024 14:43:44 -0600 Subject: [PATCH] Fix error --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 1614fe7..ce4d22c 100644 --- a/index.js +++ b/index.js @@ -1336,7 +1336,9 @@ dcClient.on('interactionCreate', async interaction => { interaction.editReply(`Error getting CDR records: ${error}`); }); conn.end(); - } + }).catch((error) => { + interaction.editReply(`Error getting CDR records: ${error}`); + }); } }).catch((error) => { // The user doesn't have an extension, return an ephemeral message saying so