v12.7.8 clean internal error handling
This commit is contained in:
11 files changed
+154
-510
No files matched your search
+10
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user