#am getting this error plz help

1 messages ยท Page 1 of 1 (latest)

keen gale
#

help plz

lime rain
keen gale
lime rain
#

sure

#

why not

keen gale
#

@lime rainthis is my lavalink trackstart file

lime rain
#

okay

#

what will we add

#

?

keen gale
#

@lime rain can u add the image to the embed at line 71

lime rain
#

const thing = new EmbedBuilder()

#

do i add this link?

#

to embed

keen gale
#

Yes but my frnd set the image separately wait lemme show

lime rain
#

hmm

#

show me

keen gale
#

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

lime rain
#

oh i understand

keen gale
#

Yes ty

lime rain
#

i will put the photo in the embed isn't it?

#

@keen gale

keen gale
#

The embed that is located at line 71

lime rain
#

oh i will try

#

.setImage(attachment://playing.png)

#

you already did

#

hmm

keen gale
lime rain
#

shall i remove the embed?

keen gale
#

I just want the spotify card in embed at setImage and my buttons that I have set before

lime rain
#

@keen gale

#

lets try

keen gale
#

K

lime rain
#

stop

keen gale
#

?

lime rain
#

i will add one more thing

keen gale
#

Ok

lime rain
#

@keen gale

keen gale
#

K lemme try

lime rain
keen gale
#

@lime rain it's still sending the image only

#

@lime rain check line 173

lime rain
#

what is this

keen gale
# lime rain 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

lime rain
#

@keen gale try

keen gale
#

K

lime rain
#

hmm

keen gale
#

@lime rain now it's sending it like this separately and all buttons are gone

lime rain
#

i will fix

keen gale
#

Oki ty

lime rain
#

@keen gale

#

try

keen gale
#

K

lime rain
#

is it ok?

keen gale
#

@lime rain tysm It worked

lime rain
#

you're welcome

#

anytime anywhere the best luppux ๐Ÿ˜

#

good day

keen gale
#

Good day bye tc

late fjord
late fjord
#
โ“ ( 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.