do the same for music

This commit is contained in:
ChomeNS 2022-12-27 13:58:52 +07:00
parent 2ac823f9d5
commit 5ce7ddecbe

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' }]) bot.tellraw(selector, [{ text: 'Added ', color: 'white' }, { text: song.name, color: 'gold' }, { text: ' to the song queue', color: 'white' }])
} }
} catch (_err) { } catch (_err) {
const e = response.data.toString() const e = _err.toString() === 'Error: Input buffer contains unsupported image format' ? response.data.toString() : _err
if (discord) { if (discord) {
const Embed = new EmbedBuilder() const Embed = new EmbedBuilder()
.setColor(config.discord.embedsColors.error) .setColor(config.discord.embedsColors.error)