✨ Bug fixes & update (v3.0.0)
This commit is contained in:
15
player/error.js
Normal file
15
player/error.js
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports = (client, error, message) => {
|
||||
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;
|
||||
default:
|
||||
message.channel.send(`${client.emotes.error} - Something went wrong ... Error : ${error}`);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user