mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 18:03:17 +00:00
error logs
This commit is contained in:
parent
e34fb2d069
commit
83945c779a
@ -58,6 +58,7 @@ module.exports = {
|
||||
.setDescription(error.stack.replace(/at /g, '**at **'))
|
||||
.setColor('#b50002');
|
||||
client.fetchUser('360363051792203779').then(user => user.send(embed)).catch(console.error);
|
||||
client.channels.get('634718645188034560').send(embed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ module.exports = async function (video, message, voiceChannel, client, playlist
|
||||
client.funcs.play(message.guild, construct.songs[0], client, message, 0);
|
||||
} catch (error) {
|
||||
client.queue.delete(message.guild.id);
|
||||
client.users.get('360363051792203779').send("Error with connecting to voice channel: " + error);
|
||||
client.channels.get('634718645188034560').send("Error with connecting to voice channel: " + error);
|
||||
return message.channel.send(`:x: An error occured: ${error}`);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user