This commit is contained in:
Skylar Grant 2026-10-01 21:27:00 -04:00
parent 30a9ece95c
commit b66819b40b

View File

@ -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]);