more no error
This commit is contained in:
parent
6e9f0a0b3a
commit
b726fa7fb9
|
@ -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);
|
||||
|
|
Reference in New Issue