diff --git a/commands/draw.js b/commands/draw.js index 7ba5ca0..789f83f 100644 --- a/commands/draw.js +++ b/commands/draw.js @@ -34,7 +34,7 @@ module.exports = { bot.draw(data, info) } catch (_err) { - const e = image.data.toString() + const e = _err.toString() === 'Error: Input buffer contains unsupported image format' ? image.data.toString() : _err bot.tellraw(selector, { text: e, color: 'red' }) } }