diff --git a/commands/music.js b/commands/music.js index 93ccb8c..63614d0 100644 --- a/commands/music.js +++ b/commands/music.js @@ -131,7 +131,15 @@ async function list(bot, discord, channeldc, prefix, selector, args) { bot.tellraw(selector, message); } catch (e) { - bot.tellraw(selector, {text: e.toString(), color: 'red'}); + if (discord) { + const Embed = new MessageEmbed() + .setColor('#FF0000') + .setTitle('Error') + .setDescription(`\`\`\`${e.toString()}\`\`\``); + channeldc.send({embeds: [Embed]}); + } else { + bot.tellraw(selector, {text: e.toString(), color: 'red'}); + } } }; @@ -304,7 +312,7 @@ module.exports = { } break; case 'list': - list(bot, true, channeldc, prefix); + list(bot, true, channeldc, prefix, '@a', args); break; case 'nowplaying': Embed = new MessageEmbed()