From 847a357a6155b8be6c4bfe291e8ddc2cda5a7742 Mon Sep 17 00:00:00 2001 From: Zerio <43386412+ZerioDev@users.noreply.github.com> Date: Wed, 20 Oct 2021 22:10:36 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Ephemeral=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- events/interactionCreate.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/events/interactionCreate.js b/events/interactionCreate.js index 83b5169..a14a5f3 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -5,12 +5,12 @@ module.exports = (client, int) => { switch (int.customId) { case 'saveTrack': { - if (!queue || !queue.playing) return int.reply({ content: `No music currently playing <@${int.user.id}>... try again ? ❌`, components: [] }); + if (!queue || !queue.playing) return int.reply({ content: `No music currently playing... try again ? ❌`, ephemeral: true, components: [] }); int.member.send(`You saved the track ${queue.current.title} | ${queue.current.author} from the server ${int.member.guild.name} ✅`).then(() => { - return int.reply({ content: `I have sent you the title of the music by private messages <@${int.user.id}> ✅`, components: [] }); + return int.reply({ content: `I have sent you the title of the music by private messages ✅`, ephemeral: true, components: [] }); }).catch(error => { - return int.reply({ content: `Unable to send you a private message <@${int.user.id}>... try again ? ❌`, components: [] }); + return int.reply({ content: `Unable to send you a private message... try again ? ❌`, ephemeral: true, components: [] }); }); } }