diff --git a/commands/edit-image-text/tweet.js b/commands/edit-image-text/tweet.js index f57ee585..66d02945 100644 --- a/commands/edit-image-text/tweet.js +++ b/commands/edit-image-text/tweet.js @@ -194,7 +194,7 @@ module.exports = class TweetCommand extends Command { ctx.clip(); } ctx.drawImage(avatar, 17, 84, 52, 52); - const errMsg = userData.err ? `_An error occurred fetching profile: \`${err.message}\`_` : undefined; + const errMsg = userData.err ? `_An error occurred fetching profile: \`${userData.err.message}\`_` : undefined; return msg.say(errMsg, { files: [{ attachment: canvas.toBuffer(), name: 'tweet.png' }] }); }