Events & update (v2.0.0)

This commit is contained in:
Zerio
2020-11-15 18:56:32 +01:00
committed by GitHub
parent 2c24842aba
commit 31d1cd25a0
10 changed files with 70 additions and 0 deletions

17
player-events/error.js Normal file
View File

@@ -0,0 +1,17 @@
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}`);
};
};