4.3.1 fix sendInternalError handler

This commit is contained in:
SowinskiBraeden committed 2022-12-07 19:11:06 -08:00
1 parent b262f11d69
commit 80ac2a1f08
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -180,7 +180,11 @@ class DayzArmbands extends Client {
.setDescription(`**Internal Error:**\nUh Oh D: Its not you, its me.\nThis command has crashed\nContact the Developers\nhttps://discord.gg/YCXhvy9uZw`)
.setColor(this.config.Colors.Red)
Interaction.send({ embeds: [embed] });
try {
Interaction.send({ embeds: [embed] });
} catch {
Interaction.update({ embeds: [embed], components: [] });
}
}
// Calls register for guild and global commands