Page cover image

📗Changes Notes

Canvafy Changes Notes

npm i canvafy
yarn add canvafy

🐈‍⬛ Version 0.3.0 Valid For Later Version!

 ( Old Versions )For Before Version 0.3.0
# Writing .toBuffer() is Required to Create Image
- Example;
const spotify = await new canvafy.Spotify()

message.reply({
files:[
{attachment: spotify.toBuffer(),name:"spotify.png"}
]
})


 ( New Versions )For After Version 0.3.0
# Writing .toBuffer() to Create Image Removed, Now You Can Access Image Using Direct Definition!
- Example;
const spotify = await new canvafy.Spotify()

message.reply({
files:[
{attachment:spotify,name:"spotify.png"}
]
})

🌀 So Why Did It Change?
# We switched from the "node-canvas" package we used to create images in canvafy to the "napi-rs/canvas" package, so this definition has been changed.

Last updated