Fix error

This commit is contained in:
Christopher Cookman 2024-06-11 14:43:44 -06:00
parent 4e3b7096e1
commit faa65af54c
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -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