error logs

This commit is contained in:
MatteZ02 committed 2019-10-18 16:01:26 +03:00
1 parent e34fb2d069
commit 83945c779a
2 files changed
+2 -1

No files matched your search

+1
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);
}
}
}
+1 -1
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 {