Compare commits
5 Commits
v3.6.1-dev
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 304503f7d8 | |||
| 7b504a2312 | |||
| 8039f8f1c7 | |||
| 46e5079eaf | |||
| 8580dda6c8 |
@ -13,7 +13,7 @@ module.exports = {
|
||||
try {
|
||||
fn.upload.request(requester, requestText, messageUrl, message.client);
|
||||
// Set the content to sent a text embed notifying the user of success
|
||||
commandData.content = `Your request has been submitted!\nRequest: ${request}`;
|
||||
commandData.content = `Your request has been submitted!\nRequest: ${requestText}`;
|
||||
const replyEmbed = fn.embeds.text(commandData);
|
||||
message.reply({ embeds: [ replyEmbed ]});
|
||||
} catch(err) {
|
||||
@ -22,8 +22,8 @@ module.exports = {
|
||||
const replyEmbed = fn.embeds.text(commandData);
|
||||
message.reply({ embeds: [ replyEmbed ]});
|
||||
|
||||
const errorEmbed = fn.embeds.error(`An error has occurred in command ${this.name}:\n${JSON.stringify(err)}`);
|
||||
fn.sendAlert(errorEmbed);
|
||||
const errorEmbed = fn.embeds.error(`An error has occurred in command ${this.name}:\n${err}`);
|
||||
fn.sendAlert(errorEmbed, message.client);
|
||||
}
|
||||
},
|
||||
};
|
||||
@ -465,7 +465,7 @@ const functions = {
|
||||
error(errorText) {
|
||||
const errorEmbed = new Discord.MessageEmbed()
|
||||
.setAuthor({ name: "Error!" })
|
||||
.setDescription({ text: errorText })
|
||||
.setDescription(errorText)
|
||||
.setFooter({ text: appVersion });
|
||||
|
||||
return errorEmbed;
|
||||
@ -921,7 +921,7 @@ const functions = {
|
||||
const errorId = digits.join("");
|
||||
return errorId;
|
||||
},
|
||||
async sendAlert(embed) {
|
||||
async sendAlert(embed, client) {
|
||||
const statusChannel = await client.channels.fetch(statusChannelId)
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user