This commit is contained in:
Christopher Cookman 2025-02-11 08:52:22 -07:00
parent b3943d3cdb
commit d9b52d841a
2 changed files with 6 additions and 7 deletions

View file

@ -110,11 +110,6 @@ module.exports = [
"name": "list-deletions", "name": "list-deletions",
"description": "List pending deletions", "description": "List pending deletions",
"type": 1 "type": 1
},
{
"name": "check-deletions",
"description": "Check for orphaned extensions",
"type": 1
} }
] ]
}, },

View file

@ -119,7 +119,9 @@ client.on('interactionCreate', async interaction => {
await command.execute(interaction); await command.execute(interaction);
} catch (error) { } catch (error) {
log.error(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; break;
case Discord.InteractionType.MessageComponent: case Discord.InteractionType.MessageComponent:
@ -131,7 +133,9 @@ client.on('interactionCreate', async interaction => {
await component.execute(interaction); await component.execute(interaction);
} catch (error) { } catch (error) {
log.error(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; break;
} }