mirror of
https://github.com/MrUnknownDE/UnknownAI.git
synced 2026-04-17 21:43:46 +02:00
huch?
This commit is contained in:
21
player/error.js
Normal file
21
player/error.js
Normal file
@@ -0,0 +1,21 @@
|
||||
module.exports = (client, error, message, ...args) => {
|
||||
switch (error) {
|
||||
case 'NotPlaying':
|
||||
message.channel.send(`${client.emotes.error} - There is no music being played on this server !`);
|
||||
break;
|
||||
case 'NotConnected':
|
||||
message.channel.send(`${client.emotes.error} - You are not connected in any voice channel !`);
|
||||
break;
|
||||
case 'UnableToJoin':
|
||||
message.channel.send(`${client.emotes.error} - I am not able to join your voice channel, please check my permissions !`);
|
||||
break;
|
||||
case 'VideoUnavailable':
|
||||
message.channel.send(`${client.emotes.error} - ${args[0].title} is not available in your country! Skipping...`);
|
||||
break;
|
||||
case 'MusicStarting':
|
||||
message.channel.send(`The music is starting... please wait and retry!`);
|
||||
break;
|
||||
default:
|
||||
message.channel.send(`${client.emotes.error} - Something went wrong ... Error : ${error}`);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user