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); const permissions = interaction.channel.permissionsFor(interaction.user);
if(!client.stations) { if(!client.stations) {
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild); message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
return interaction.reply({ interaction.reply({
content: client.messageEmojis["error"] + message.errorToGetPlaylist, content: client.messageEmojis["error"] + message.errorToGetPlaylist,
ephemeral: true ephemeral: true
}); });
return false;
} }
if (!radio) { if (!radio) {
interaction.reply({ interaction.reply({