Guuuh
This commit is contained in:
parent
b3943d3cdb
commit
d9b52d841a
|
@ -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
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
8
index.js
8
index.js
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue