I think canvas requires the assets to be stored locally in the project. Try uploading the files via the console using wget url_to_file where url_to_file is the URL you get when you click on the file assets.
I still cant get this to work
i am getting no error
CODE:
const background = await Canvas.loadImage(__dirname + ‘/assets/wallpaper.jpg’);
// This uses the canvas dimensions to stretch the image onto the entire canvas
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);
// Use helpful Attachment class structure to process the file for you
const attachment = new MessageAttachment(canvas.toBuffer(), ‘welcome-image.png’);
console.log(attachment)
when i console.log(attachment) ` i get:
MessageAttachment {