mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 11:29:33 +00:00 
			
		
		
		
	Ephemeral replies in nowplaying.js
This commit is contained in:
		@@ -8,10 +8,16 @@ module.exports = {
 | 
				
			|||||||
    async execute(interaction, client, Discord, command) {
 | 
					    async execute(interaction, client, Discord, command) {
 | 
				
			||||||
        let message = {};
 | 
					        let message = {};
 | 
				
			||||||
        const radio = client.radio.get(interaction.guild.id);
 | 
					        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) {
 | 
					        if(!client.stations) {
 | 
				
			||||||
            message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
 | 
					            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();
 | 
					        let date = new Date();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user