Closed EclipseGame18 closed 1 year ago
I'll give it a look. Do you have a url to test?
Why not store the favicon locally?
heroku doesnt include the image in the build
const favicon = await fetch('https://i.ibb.co/L8sZqxX/favImg.png');
const arrayBuffer = await favicon.arrayBuffer();
const buffer = Buffer.from(arrayBuffer);
// And then -> faviconPath: buffer,
Something like this should work
arrayBuffer is not a function (also removed await because no async)
Without await it won't work haha
how can i get async then?
(() => async () => {
// Your code here
})();
Or make your code an ES module to use top-level await
it doesn't work
Wdym ? Do you have some errors ? What's your code ?
no errors, but i had to wrap the entire file in an async function just to get await and then in client.on('ready') I started the function
This worked for me : https://github.com/SimonLeclere/discord-easy-dashboard/blob/master/test/test.js
I have implemented your changes, but the favicon is still the google defult
Try shift+reload ?
my apologies, it just took a week or so to update
Hi, sorry to bother you again! After you helped me fix the other problem I have since uploaded it to Heroku, is there any way to allow for the faviconPath to allow for URLs? Thanks!