1
0
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:
MatteZ02 2019-10-18 16:01:26 +03:00
parent e34fb2d069
commit 83945c779a
2 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}
}

View File

@ -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 {