Discohook
    Discohook
    • Discohook API
    • Reference
    • Discohook CDN
    • Using Discohook as an external message designer or previewer
    • Changelog
    • Share Links
      • Create Share Link
        POST
      • Get Share Link
        GET
    • Link Preview
      • Unfurl URL Embed
        GET
    • GitHub
      • Execute GitHub-Compatible Webhook in Forum Channel
        POST

    Discohook CDN

    The Discohook CDN will allow Deluxe users to upload media and files to store persistently alongside backups, which are normally text-only. It also contains utilities for embed formatting:

    Fixed Embed Width#

    Discord will lock an embed to the width of its image when said width is at least 300 pixels, assuming the image has an aspect ratio of 1:1 or wider, and it will continue to expand visually up to 400 pixels. Therefore, Discohook provides a free CDN endpoint to control the width of embeds:
    https://cdn.discohook.app/transparent/400x1
    Where 400 is any integer between 300 and 400, inclusive. The suffix .png may also be appended.
    This endpoint can be used as such: discohook link. See the Large Image URL section and how the previewed embed is much wider than the text would otherwise cause it to be, at the cost of a notable chin below the body.
    Modified at 2024-07-25 19:33:22
    Previous
    Reference
    Next
    Using Discohook as an external message designer or previewer
    Built with