From b66819b40b69df7cd4c99c349e1e955b7fc8b1f8 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 1 Oct 2026 21:27:00 -0400 Subject: [PATCH] Tidy up --- dot-commands/request.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dot-commands/request.js b/dot-commands/request.js index b679d9e..68f86ab 100644 --- a/dot-commands/request.js +++ b/dot-commands/request.js @@ -15,12 +15,13 @@ module.exports = { // Set the content to sent a text embed notifying the user of success commandData.content = `Your request has been submitted!\nRequest: ${requestText}`; const replyEmbed = fn.embeds.text(commandData); - message.reply({ embeds: [ replyEmbed ]}); - } catch(err) { + message.reply({ embeds: [ replyEmbed ] }); + } + catch (err) { console.error(err); - commandData.content = "An error occurred while saving the request, please try again later."; + commandData.content = 'An error occurred while saving the request, please try again later.'; const replyEmbed = fn.embeds.text(commandData); - message.reply({ embeds: [ replyEmbed ]}); + message.reply({ embeds: [ replyEmbed ] }); const errorEmbed = fn.embeds.error(`An error has occurred in command ${this.name}:\n${err}`); fn.sendAlert(message.client, [errorEmbed]);