Skip to content

Conversation

@panley01
Copy link
Contributor

@panley01 panley01 commented Jan 15, 2023

Server subs assets use the path: :app_id/store/:asset_id, while the actual asset IDs cannot be managed or fetched by bots, this should be documented for completeness in case an app ever wishes to refer to these assets.

Assets can be fetched by bots via discovery/:guild_id (thanks Jup)

Server subs assets use the path: `:app_id/store/:asset_id`, while the actual asset IDs cannot be managed or fetched by bots, this should be documented for completeness in case an app ever wishes to refer to these assets.
@Jupith
Copy link
Contributor

Jupith commented Jan 15, 2023

The assets can infact be fetched by bots through the discovery/:id endpoint

@advaith1
Copy link
Contributor

this is not just for server subs

Endpoint is used for store page assets & repurposed for server subs. For consideration of legacy store pages & other implementations (like sticker pack banners), this naming & position would be more accurate.
@panley01
Copy link
Contributor Author

as @advaith1 pointed out, this endpoint was initially created for store pages and has been repurposed over time (for sticker pack banners and now server subs). For accuracy, I've updated the naming & positioning of the endpoint.

@jkcailteux jkcailteux merged commit f4ca0ae into discord:main Feb 15, 2023
KubaZ2 added a commit to NetCordDev/NetCord that referenced this pull request Feb 15, 2023
Nihlus added a commit to Remora/Remora.Discord that referenced this pull request Mar 16, 2023
shaydewael pushed a commit to Jupith/discord-api-docs that referenced this pull request May 14, 2024
* Document CDN endpoint for server subs assets

Server subs assets use the path: `:app_id/store/:asset_id`, while the actual asset IDs cannot be managed or fetched by bots, this should be documented for completeness in case an app ever wishes to refer to these assets.

* Updated wording & positioning

Endpoint is used for store page assets & repurposed for server subs. For consideration of legacy store pages & other implementations (like sticker pack banners), this naming & position would be more accurate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants