#am getting this error plz help
1 messages ยท Page 1 of 1 (latest)
i fixed it but can u help me adding it to embed
@lime rain can u add the image to the embed at line 71
const thing = new EmbedBuilder()
let image = ${track.thumbnail ? track.thumbnail : https://img.spotify.com/track/${track.identifier}/maxresdefault.jpg`}`
do i add this link?
to embed
Yes but my frnd set the image separately wait lemme show
So my frnd set like when we play something it directly send the image
But I want that image in the embed at line 71 so like when we play something the image comes in the embed that is at line 71
@lime rain
oh i understand
Yes ty
Yes set the spotify card in embed
The embed that is located at line 71
But it still sends the image instead of embed
shall i remove the embed?
No I want embed cuz I have set the buttons in embed u can see there
I just want the spotify card in embed at setImage and my buttons that I have set before
K
stop
?
i will add one more thing
Ok
K lemme try
what is this
Spotify card I told u that like I want it in embed at line 71 but it's still sending the card only not the embed can u check line 173 maybe it will help
hmm
@lime rain now it's sending it like this separately and all buttons are gone
i will fix
Oki ty
is it ok?
@lime rain tysm It worked
Good day bye tc
??
โ ( 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.