more no error
This commit is contained in:
parent
6e9f0a0b3a
commit
b726fa7fb9
|
@ -184,7 +184,7 @@ async function queueUp(url, id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err) {
|
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 {
|
} else {
|
||||||
if (info.length) {
|
if (info.length) {
|
||||||
info.forEach(i => {
|
info.forEach(i => {
|
||||||
|
@ -206,7 +206,7 @@ bot.on('messageCreate', async (msg) => {
|
||||||
const params = content.replace(prefix, '').split(' ');
|
const params = content.replace(prefix, '').split(' ');
|
||||||
const cmd = params[0];
|
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]) {
|
if ((cmd === 'play' || cmd === 'p') && params[1]) {
|
||||||
const connection = await checkVoiceChannel(msg);
|
const connection = await checkVoiceChannel(msg);
|
||||||
|
|
Reference in New Issue