This package will help you create realistic images that simulate messages from Discord
(Not published to NPM)
NPM:
npm install discord-screenshot
Yarn:
yarn add discord-screenshot
new DiscordScreenshot()
.setPfp('./pfp.png')
.then(x => x.setUsername('MrTomato'))
.then(x => x.setTimestamp(new Date()))
.then(x => x.setContent('Hello world!'))
.then(x => x.construct())
.then(x => x.write('./output.png'));
Check the MEASUREMENTS file for the measurements used to create the image accurately