Updated interactionCreate & messageCreate events

This commit is contained in:
Christer Warén committed 2021-09-02 12:54:39 +03:00
1 parent b6c47d7c6f
commit c4fb1d5147
2 files changed
+12 -3

No files matched your search

+8 -2
View File
@@ -16,7 +16,10 @@ module.exports = {
try {
command.execute(interaction, client, Discord, command);
} catch (error) {
interaction.reply(client.messages.runningCommandFailed);
interaction.reply({
content: client.messages.runningCommandFailed,
ephemeral: true
});
console.error(error);
}
} else if (interaction.isSelectMenu() || interaction.isButton()){
@@ -27,7 +30,10 @@ module.exports = {
try {
command.execute(interaction, client, Discord, command);
} catch (error) {
interaction.reply(client.messages.runningCommandFailed);
interaction.reply({
content: client.messages.runningCommandFailed,
ephemeral: true
});
console.error(error);
}
}
+4 -1
View File
@@ -44,7 +44,10 @@ module.exports = {
msg.delete();
}, 30000);
} catch (error) {
msg.reply(client.messages.runningCommandFailed);
msg.reply({
content: client.messages.runningCommandFailed,
ephemeral: true
});
console.error(error);
}
}