🪄
canvafy
Support Server
  • 🥳Welcome
    • 📒Patch Notes
    • 📗Changes Notes
    • 📕License
    • 💾Resolve Error's
  • 📝Rank / Level Card
  • 📝Spotify Card
  • 📝Welcome / Leave Card
  • 📝Tweet Card
  • 📝Instagram Card
  • 📝Captcha Card
  • 📝Security Card
  • 📝Level Up Card
  • 📝Profile Card
  • 📝Ship Card
  • 📝Top / Rank Card
  • 🤡Others
    • 🔖Affect
    • 🔖Bat Slap
    • 🔖Beautiful
    • 🔖Darkness
    • 🔖Delete
    • 🔖Gay
    • 🔖Greyscale
    • 🔖Invert
    • 🔖Kiss
  • ⚒️Utils
Powered by GitBook
On this page
  1. Welcome

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.
PreviousPatch NotesNextLicense

Last updated 1 year ago

🥳
📗
Page cover image