diff --git a/commands/music.js b/commands/music.js index 7bd2b18..a0f18a5 100644 --- a/commands/music.js +++ b/commands/music.js @@ -79,7 +79,7 @@ async function playUrl (bot, values, discord, channeldc, selector, config) { bot.tellraw(selector, [{ text: 'Added ', color: 'white' }, { text: song.name, color: 'gold' }, { text: ' to the song queue', color: 'white' }]) } } catch (_err) { - const e = _err.toString() === 'Error: Input buffer contains unsupported image format' ? response.data.toString() : _err + const e = _err.toString().includes('Bad MIDI file. Expected \'MHdr\', got: ') ? response.data.toString() : _err if (discord) { const Embed = new EmbedBuilder() .setColor(config.discord.embedsColors.error)