✨ Add new video unavailable error
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
module.exports = (client, error, message) => {
|
module.exports = (client, error, message, ...args) => {
|
||||||
switch (error) {
|
switch (error) {
|
||||||
case 'NotPlaying':
|
case 'NotPlaying':
|
||||||
message.channel.send(`${client.emotes.error} - There is no music being played on this server !`);
|
message.channel.send(`${client.emotes.error} - There is no music being played on this server !`);
|
||||||
@@ -9,6 +9,9 @@ module.exports = (client, error, message) => {
|
|||||||
case 'UnableToJoin':
|
case 'UnableToJoin':
|
||||||
message.channel.send(`${client.emotes.error} - I am not able to join your voice channel, please check my permissions !`);
|
message.channel.send(`${client.emotes.error} - I am not able to join your voice channel, please check my permissions !`);
|
||||||
break;
|
break;
|
||||||
|
case 'VideoUnavailable':
|
||||||
|
message.channel.send(`${client.emotes.error} - ${args[0].title} is not available in your country! Skipping...`);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
message.channel.send(`${client.emotes.error} - Something went wrong ... Error : ${error}`);
|
message.channel.send(`${client.emotes.error} - Something went wrong ... Error : ${error}`);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user