code cleanup and removal of auth stuff

This commit is contained in:
Raven Scott
2023-04-07 20:54:46 +02:00
parent d8c69ba5fe
commit e3a6f6c664
4 changed files with 6 additions and 9 deletions

View File

@ -24,7 +24,7 @@ module.exports = {
let chatToSend = interaction.options._hoistedOptions[0].value;
// Check if another request is already being processed
if (isProcessing) {
interaction.editReply('Sorry, another request is already being processed. Please try again in a few minutes.');
interaction.followUp({ content: 'Sorry, another request is already being processed. Please try again in a few minutes.', ephemeral: true });
return;
}
// Set the semaphore to true