more no error

This commit is contained in:
Jill 2021-11-07 14:08:37 +03:00
parent 6e9f0a0b3a
commit b726fa7fb9
1 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ async function queueUp(url, id) {
}
if (err) {
return [null, `failed to retrieve youtube-dl info!: \`\`\`${err}\`\`\``];
return [null, `failed to retrieve youtube-dl info!: \`\`\`${err.toString().slice(0, 1000)}\`\`\``];
} else {
if (info.length) {
info.forEach(i => {
@ -206,7 +206,7 @@ bot.on('messageCreate', async (msg) => {
const params = content.replace(prefix, '').split(' ');
const cmd = params[0];
if (!msg.guild || !content.startsWith(prefix)) return;
if (!msg.guild || !content.startsWith(prefix) || !msg.channel) return;
if ((cmd === 'play' || cmd === 'p') && params[1]) {
const connection = await checkVoiceChannel(msg);