2021-09-04 23:12:43 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'next',
|
|
|
|
description: 'Next Station',
|
|
|
|
permission: 'none',
|
|
|
|
category: 'info',
|
2021-09-05 00:17:21 +00:00
|
|
|
async execute(interaction, client) {
|
2021-09-04 23:12:43 +00:00
|
|
|
let message = {};
|
|
|
|
const radio = client.radio.get(interaction.guild.id);
|
|
|
|
if (!radio) return interaction.reply({
|
|
|
|
content: 'There is nothing playing.',
|
|
|
|
ephemeral: true
|
|
|
|
});
|
|
|
|
if(!client.stations) {
|
|
|
|
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
|
|
|
|
return interaction.reply({
|
|
|
|
content: client.messageEmojis["error"] + message.errorToGetPlaylist,
|
|
|
|
ephemeral: true
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|