Embed: Wrong image in iconURL

Hello!

I'm with Typescript. I generate my image using my GitHub repository, so I just need to push to it and use https://raw.githubusercontent.com/${GITHUB}/master/images

The image has been successfully pushed (for example, see : https://raw.githubusercontent.com/lisandra-dev/velum-bot/master/images/meteo/moon/waxing-crescent.png)
But, my bot continue to load/display the old version of the image, as I changed the image previously.

How cache image works in discord ? How can I fix that ?

I use a link like that:


    const moon = {
        "Waxing Crescent" : `${IMAGE_LINK}/meteo/moon/waxing-crescent.png`, //๐ŸŒ’
        "First Quarter" : `${IMAGE_LINK}/meteo/moon/first-quarter.png`, //๐ŸŒ“
        "New" : `${IMAGE_LINK}/meteo/moon/new-moon.png`, //๐ŸŒ‘
        "Waxing Gibbous" : `${IMAGE_LINK}/meteo/moon/waxing-gibbous.png`, //๐ŸŒ”
        "Full" : `${IMAGE_LINK}/meteo/moon/full-moon.png`, //๐ŸŒ•
        "Waning Gibbous" : `${IMAGE_LINK}/meteo/moon/waning-gibbous.png`, //๐ŸŒ–
        "Last Quarter" : `${IMAGE_LINK}/meteo/moon/third-quarter.png`, //๐ŸŒ—
        "Waning Crescent" : `${IMAGE_LINK}/meteo/moon/waning-crescent.png`, //๐ŸŒ˜
    };

let embed = new EmbedBuilder()
        .setThumbnail(icon)
        .setDescription(capitalize(data.weather.description))
        .setAuthor({
            name: `${city} ยท ${main}`,
            iconURL: `${moon[Moon.lunarPhase()]}` as string,
        })
Was this page helpful?