From 5cb58bbfe09ec0d2be79bb81f193169008d1e60a Mon Sep 17 00:00:00 2001 From: ION606 Date: Fri, 10 Jun 2022 18:07:58 +0300 Subject: [PATCH] Fixed Wallpaper link --- commands/admin/welcome.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/admin/welcome.js b/commands/admin/welcome.js index 270349f..49e0980 100644 --- a/commands/admin/welcome.js +++ b/commands/admin/welcome.js @@ -12,7 +12,7 @@ async function welcome(member, welcomechannel, welcomebanner = null) { //Draw Stuff const context = canvas.getContext('2d'); - const backgroundFile = await readFile('./commands\\admin\\wallpaper.jpg'); + const backgroundFile = await readFile('https://github.com/ION606/selmerBot/blob/main/commands/admin/wallpaper.jpg'); const background = new CanvasImport.Image(); background.src = backgroundFile; @@ -68,7 +68,7 @@ async function welcome(member, welcomechannel, welcomebanner = null) { context.drawImage(avatar, (canvas.width/2) - 80, 10, 160, 160); // Use the helpful Attachment class structure to process the file for you - const attachment = new MessageAttachment(canvas.toBuffer('https://github.com/ION606/selmerBot/blob/main/commands/admin/wallpaper.jpg'), 'profile-image.png'); + const attachment = new MessageAttachment(canvas.toBuffer('image/png'), 'profile-image.png'); welcomechannel.send({ files: [attachment] }); }