This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
legacy-musicbot/player/error.js
2021-02-26 13:40:55 +01:00

19 lines
878 B
JavaScript

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;
default:
message.channel.send(`${client.emotes.error} - Something went wrong ... Error : ${error}`);
};
};