From c4fb1d514785df7e7e753977bca0bbb789839736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 2 Sep 2021 12:54:39 +0300 Subject: [PATCH] Updated interactionCreate & messageCreate events --- src/client/events/interactionCreate.js | 10 ++++++++-- src/client/events/messageCreate.js | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/client/events/interactionCreate.js b/src/client/events/interactionCreate.js index af105ab..4e3e608 100644 --- a/src/client/events/interactionCreate.js +++ b/src/client/events/interactionCreate.js @@ -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); } } diff --git a/src/client/events/messageCreate.js b/src/client/events/messageCreate.js index 4c63784..49614d1 100644 --- a/src/client/events/messageCreate.js +++ b/src/client/events/messageCreate.js @@ -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); } }