better error handling
This commit is contained in:
14 files changed
+160
-157
No files matched your search
+4
-4
@@ -88,9 +88,9 @@ module.exports = {
|
||||
if (!inventoryReset) {
|
||||
const success = addInventory(inventory.guilds, GuildDB.serverID, targetUserID, client);
|
||||
if (!success) {
|
||||
client.log(err);
|
||||
client.error(err);
|
||||
const embed = new EmbedBuilder()
|
||||
.setDescriptions(`**Internal Error:** ${err}\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(client.config.Colors.Red)
|
||||
|
||||
return ButtonInteraction.update({ embeds: [embed], components: [] });
|
||||
@@ -100,9 +100,9 @@ module.exports = {
|
||||
if (!bankingReset) {
|
||||
const success = addBank(banking.guilds, GuildDB.serverID, targetUserID, client);
|
||||
if (!success) {
|
||||
client.log(err);
|
||||
client.error(err);
|
||||
const embed = new EmbedBuilder()
|
||||
.setDescriptions(`**Internal Error:** ${err}\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(client.config.Colors.Red)
|
||||
|
||||
return ButtonInteraction.update({ embeds: [embed], components: [] });
|
||||
|
||||
Reference in new issue
Block a user