mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 00:33:17 +00:00
Fixed next command
This commit is contained in:
parent
1371a83e90
commit
cc8b44db9b
@ -16,8 +16,6 @@ module.exports = {
|
|||||||
ephemeral: true
|
ephemeral: true
|
||||||
});
|
});
|
||||||
|
|
||||||
interaction.deferUpdate();
|
|
||||||
|
|
||||||
let url = station.stream[station.stream.default];
|
let url = station.stream[station.stream.default];
|
||||||
|
|
||||||
client.funcs.statisticsUpdate(client, interaction.guild, radio);
|
client.funcs.statisticsUpdate(client, interaction.guild, radio);
|
||||||
@ -27,7 +25,14 @@ module.exports = {
|
|||||||
radio.station = station;
|
radio.station = station;
|
||||||
radio.textChannel = interaction.channel;
|
radio.textChannel = interaction.channel;
|
||||||
radio.startTime = date.getTime();
|
radio.startTime = date.getTime();
|
||||||
|
|
||||||
|
if(interaction.isCommand()) {
|
||||||
|
client.funcs.play(interaction, interaction.guild, client, url);
|
||||||
|
}
|
||||||
|
if(interaction.isButton()) {
|
||||||
|
interaction.deferUpdate();
|
||||||
client.funcs.play(null, interaction.guild, client, url);
|
client.funcs.play(null, interaction.guild, client, url);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user