Fixed check function

This commit is contained in:
Christer Warén 2021-09-05 06:22:47 +03:00
parent b280981e1c
commit 479c0ee13d

View File

@ -4,10 +4,11 @@ module.exports = function (client, interaction, command) {
const permissions = interaction.channel.permissionsFor(interaction.user);
if(!client.stations) {
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
return interaction.reply({
interaction.reply({
content: client.messageEmojis["error"] + message.errorToGetPlaylist,
ephemeral: true
});
return false;
}
if (!radio) {
interaction.reply({