v12.7.8 clean internal error handling

This commit is contained in:
SowinskiBraeden committed 2022-10-12 17:30:27 -07:00
1 parent e4a3000a15
commit ded3831fb1
11 files changed
+154 -510

No files matched your search

+10 -1
View File
@@ -131,7 +131,7 @@ class QuarksBot extends Client {
});
}
sendTime(Channel, Error) {
sendError(Channel, Error) {
let embed = new EmbedBuilder()
.setColor(this.config.Red)
.setDescription(Error);
@@ -139,6 +139,15 @@ class QuarksBot extends Client {
Channel.send(embed);
}
sendInternalError(Interaction, Error) {
this.error(Error);
const embed = new EmbedBuilder()
.setDescription(`**Internal Error:**\nUh Oh D: Its not you, its me.\nThis command has crashed\nContact the Developers\nhttps://discord.gg/YCXhvy9uZw`)
.setColor(client.config.Colors.Red)
Interaction.send({ embeds: [embed] });
}
// Calls register for guild and global commands
RegisterSlashCommands() {
RegisterGlobalCommands(this);