mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
Fix
This commit is contained in:
@@ -194,7 +194,7 @@ module.exports = class TweetCommand extends Command {
|
|||||||
ctx.clip();
|
ctx.clip();
|
||||||
}
|
}
|
||||||
ctx.drawImage(avatar, 17, 84, 52, 52);
|
ctx.drawImage(avatar, 17, 84, 52, 52);
|
||||||
const errMsg = userData.err ? `_An error occurred fetching profile: \`${err.message}\`_` : null;
|
const errMsg = userData.err ? `_An error occurred fetching profile: \`${err.message}\`_` : undefined;
|
||||||
return msg.say(errMsg, { files: [{ attachment: canvas.toBuffer(), name: 'tweet.png' }] });
|
return msg.say(errMsg, { files: [{ attachment: canvas.toBuffer(), name: 'tweet.png' }] });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user