This commit is contained in:
Christer Warén 2020-04-02 10:28:43 +03:00
parent c51e5ea3b8
commit 1147093788
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@ module.exports = {
} else {
if (voiceChannel !== radio.voiceChannel) return msg.channel.send(client.messageEmojis["error"] + client.messages.wrongVoiceChannel);
}
if(!client.stations) return msg.channel.send(client.messageEmojis["error"] + client.messages.errorToGetPlaylist);
if (!args[1]) return msg.channel.send(client.messages.noQuery);
const permissions = voiceChannel.permissionsFor(msg.client.user);
if (!permissions.has('CONNECT')) {

View File

@ -31,5 +31,6 @@ module.exports = {
newVolume: "Volume is now: **%volume%**",
statisticsTitle: "Statistics",
maintenanceTitle: "Maintenance",
maintenanceDescription: "This command is not ready to be used by anyone."
maintenanceDescription: "This command is not ready to be used by anyone.",
errorToGetPlaylist: "There is no playlist which this bot can use to play radio."
};