mirror of
https://github.com/musix-org/musix-oss
synced 2026-10-23 00:45:00 +00:00
to js
This commit is contained in:
1 parent
2d55a3a8da
commit
a6e3e8b0de
71 files changed
+158
-164
No files matched your search
@@ -0,0 +1,13 @@
|
||||
module.exports = async function (client, error, guild) {
|
||||
const queue = client.queue.get(guild.id);
|
||||
console.error(error);
|
||||
/*if (error = "Error: input stream: This video contains content from WMG, who has blocked it on copyright grounds.") {
|
||||
queue.endReason = "skip";
|
||||
queue.connection.dispatcher.end();
|
||||
return queue.textChannel.send(client.messages.songBlockedWMG);
|
||||
}*/
|
||||
client.users.cache.get(client.config.devId).send(client.messages.dispatcherError + error);
|
||||
queue.voiceChannel.leave();
|
||||
client.queue.delete(guild.id);
|
||||
return queue.textChannel.send(client.messages.errorDispatcher);
|
||||
};
|
||||
Reference in new issue
Block a user