diff --git a/commands/fun/image2audio.js b/commands/fun/image2audio.js index b71d4cf1..7dbc1a70 100644 --- a/commands/fun/image2audio.js +++ b/commands/fun/image2audio.js @@ -56,7 +56,10 @@ class image2audioCommand extends Command { .on('end', () => { console.log('finished'); loadingmsg.delete(); - return message.channel.send({files: [`${os.tmpdir()}/i2a_${message.id}.wav`]}); + return message.channel.send({files: [`${os.tmpdir()}/i2a_${message.id}.wav`]}) + .catch(() => { + return message.channel.send('End result is too big to fit on discord!'); + }); }) .run(); })