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