mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 12:09:33 +00:00 
			
		
		
		
	Update next command
This commit is contained in:
		@@ -16,10 +16,7 @@ module.exports = {
 | 
				
			|||||||
                ephemeral: true
 | 
					                ephemeral: true
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            let url = station.stream[station.stream.default];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            client.funcs.statisticsUpdate(client, interaction.guild, radio);
 | 
					            client.funcs.statisticsUpdate(client, interaction.guild, radio);
 | 
				
			||||||
            radio.audioPlayer.stop();
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            let date = new Date();
 | 
					            let date = new Date();
 | 
				
			||||||
            radio.station = station;
 | 
					            radio.station = station;
 | 
				
			||||||
@@ -27,13 +24,12 @@ module.exports = {
 | 
				
			|||||||
            radio.startTime = date.getTime();
 | 
					            radio.startTime = date.getTime();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if(interaction.isCommand()) {
 | 
					            if(interaction.isCommand()) {
 | 
				
			||||||
                client.funcs.play(interaction, interaction.guild, client, url);
 | 
					                client.funcs.play(client, interaction, interaction.guild, station);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if(interaction.isButton()) {
 | 
					            if(interaction.isButton()) {
 | 
				
			||||||
                interaction.deferUpdate();
 | 
					                interaction.deferUpdate();
 | 
				
			||||||
                client.funcs.play(null, interaction.guild, client, url);
 | 
					                client.funcs.play(client, null, interaction.guild, station);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user