Tidy up
This commit is contained in:
parent
30a9ece95c
commit
b66819b40b
@ -15,12 +15,13 @@ module.exports = {
|
|||||||
// Set the content to sent a text embed notifying the user of success
|
// Set the content to sent a text embed notifying the user of success
|
||||||
commandData.content = `Your request has been submitted!\nRequest: ${requestText}`;
|
commandData.content = `Your request has been submitted!\nRequest: ${requestText}`;
|
||||||
const replyEmbed = fn.embeds.text(commandData);
|
const replyEmbed = fn.embeds.text(commandData);
|
||||||
message.reply({ embeds: [ replyEmbed ]});
|
message.reply({ embeds: [ replyEmbed ] });
|
||||||
} catch(err) {
|
}
|
||||||
|
catch (err) {
|
||||||
console.error(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);
|
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}`);
|
const errorEmbed = fn.embeds.error(`An error has occurred in command ${this.name}:\n${err}`);
|
||||||
fn.sendAlert(message.client, [errorEmbed]);
|
fn.sendAlert(message.client, [errorEmbed]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user