diff --git a/package.json b/package.json index 7211ba4..b8b8181 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "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.", "main": "index.js", "nodemonConfig": { diff --git a/structures/DayzArmbands.js b/structures/DayzArmbands.js index 412239f..e584d5d 100644 --- a/structures/DayzArmbands.js +++ b/structures/DayzArmbands.js @@ -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