Requirements: Your own image host, on a domain that you control via Cloudflare.
Limitations: 100,000 requests per day (where the embed works).
- Create a Cloudflare Worker: https://dash.cloudflare.com/sign-up/workers
- Replace the script inside the worker with your desired script from this repo (DiscordEmbed.js in this case).
- Press "Save and Deploy".
- Return to your dashboard, press "Workers", and then press "Add route".
- Set the route to be where your images are hosted, for example:
i.example.com/*
. - Make sure to click "Request limit failure mode" and change it to "Fail open". This will allow your images to show, even if you exceed 100,000 requests.
- Save & try it out.