This commit is contained in:
ChomeNS 2022-12-27 15:45:06 +07:00
parent 5ce7ddecbe
commit 8c95e74139

View file

@ -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)