From 1a5caf244f71a4e6ee5027a18e243cf7d43c5b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Fri, 3 Sep 2021 06:00:31 +0300 Subject: [PATCH] Ephemeral replies in nowplaying.js --- src/client/commands/nowplaying.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/client/commands/nowplaying.js b/src/client/commands/nowplaying.js index 3472d44..7a59e38 100644 --- a/src/client/commands/nowplaying.js +++ b/src/client/commands/nowplaying.js @@ -8,10 +8,16 @@ module.exports = { async execute(interaction, client, Discord, command) { let message = {}; const radio = client.radio.get(interaction.guild.id); - if (!radio) return interaction.reply('There is nothing playing.'); + if (!radio) return interaction.reply({ + content: 'There is nothing playing.', + ephemeral: true + }); if(!client.stations) { message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild); - return interaction.reply(client.messageEmojis["error"] + message.errorToGetPlaylist); + return interaction.reply({ + content: client.messageEmojis["error"] + message.errorToGetPlaylist, + ephemeral: true + }); } let date = new Date();