4.3.1 fix sendInternalError handler
This commit is contained in:
2 files changed
+6
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayz-armbands",
|
"name": "dayz-armbands",
|
||||||
"version": "4.3.0",
|
"version": "4.3.1",
|
||||||
"description": "A Discord Bot to handle DayZ server flags and armbands for in game factions.",
|
"description": "A Discord Bot to handle DayZ server flags and armbands for in game factions.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
@@ -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`)
|
.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)
|
.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
|
// Calls register for guild and global commands
|
||||||
|
|||||||
Reference in new issue
Block a user