mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 06:49:32 +00:00 
			
		
		
		
	Edited embed message and delete components when stopping radio
This commit is contained in:
		@@ -17,13 +17,13 @@ module.exports = {
 | 
				
			|||||||
                .setTitle(client.user.username)
 | 
					                .setTitle(client.user.username)
 | 
				
			||||||
                .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["stop"].replace(/[^0-9]+/g, ''))
 | 
					                .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["stop"].replace(/[^0-9]+/g, ''))
 | 
				
			||||||
                .setColor(client.config.embedColor)
 | 
					                .setColor(client.config.embedColor)
 | 
				
			||||||
                .addField(client.messages.nowplayingTitle, "Nothing", true)
 | 
					                .addField(client.messages.nowplayingTitle, "-", true)
 | 
				
			||||||
                .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
 | 
					                .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
 | 
				
			||||||
    
 | 
					
 | 
				
			||||||
            if(!radio.message){
 | 
					            if(!radio.message){
 | 
				
			||||||
                radio.message = await radio.textChannel.send({ embeds: [embed] });
 | 
					                radio.message = await radio.textChannel.send({ embeds: [embed], components: [] });
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                radio.message.edit({ embeds: [embed] });
 | 
					                radio.message.edit({ embeds: [embed], components: [] });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            setTimeout(function() {
 | 
					            setTimeout(function() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user