diff --git a/commands.js b/commands.js index e37ebea..e7e092f 100644 --- a/commands.js +++ b/commands.js @@ -110,11 +110,6 @@ module.exports = [ "name": "list-deletions", "description": "List pending deletions", "type": 1 - }, - { - "name": "check-deletions", - "description": "Check for orphaned extensions", - "type": 1 } ] }, diff --git a/index.js b/index.js index 47cdab1..28ede42 100644 --- a/index.js +++ b/index.js @@ -119,7 +119,9 @@ client.on('interactionCreate', async interaction => { await command.execute(interaction); } catch (error) { log.error(error); - await interaction.reply({ content: 'There was an error while executing this command!', ephemeral: true }); + await interaction.reply({ content: 'There was an error while executing this command!', ephemeral: true }).catch((error) => { + log.error(`Failed to inform user of error: ${error}`); + });; } break; case Discord.InteractionType.MessageComponent: @@ -131,7 +133,9 @@ client.on('interactionCreate', async interaction => { await component.execute(interaction); } catch (error) { log.error(error); - await interaction.reply({ content: 'There was an error while executing this component!', ephemeral: true }); + await interaction.reply({ content: 'There was an error while executing this component!', ephemeral: true }).catch((error) => { + log.error(`Failed to inform user of error: ${error}`); + });; } break; }