Remedy.CDN (Remedy v0.6.0) View Source

Discord CDN interface.

Storing images and other assets can be painful, use this module to retreive assets from the discord cdn rather than storing them.

Each function takes the required parameters to directly access a resource.

Format

All images are returned as either a .png or a .gif if the asset is animated. This is done automatically.

Size

Images can be requested of a size in [16, 32, 64, 128, 256, 512, 1024, 2048, 4096]. This is given as an optional final argument to any of the functions in this module. Arguments given will be rounded to the next largest, or the largest size if you try to go over.

Link to this section Summary

Link to this section Functions

Link to this function

achievement_icon(application_id, achievement_id, icon_hash, size \\ nil)

View Source
Link to this function

application_asset(application_id, asset_id, size \\ nil)

View Source
Link to this function

application_icon(application_id, icon, size \\ nil)

View Source
Link to this function

appplication_cover(application_id, cover_image, size \\ nil)

View Source
Link to this function

custom_emoji(id, size \\ nil)

View Source
Link to this function

default_user_avatar(user_dicriminator, size \\ nil)

View Source
Link to this function

guild_banner(guild_id, guild_banner, size \\ nil)

View Source
Link to this function

guild_discovery_splash(guild_id, guild_discovery_splash, size \\ nil)

View Source
Link to this function

guild_icon(id, guild_icon, size \\ nil)

View Source
Link to this function

guild_splash(id, splash, size \\ nil)

View Source
Link to this function

sticker_pack_banner(sticker_pack_banner_asset_id, size \\ nil)

View Source
Link to this function

user_avatar(id, user_avatar, size \\ nil)

View Source
Link to this function

user_banner(user_id, user_banner, size \\ nil)

View Source