utility.appinfo: APPLICATION_ASSETS is api not cdn

This commit is contained in:
Cynthia Foxwell 2024-07-23 17:01:38 -06:00
parent df4dc6be54
commit 8a56cb723c

View file

@ -38,7 +38,7 @@ appinfo.callback = async function (msg, line) {
app = Object.assign(app, game);
}
const assets = await hf.bot.requestHandler.request("GET", CDNEndpoints.APPLICATION_ASSETS(app.id), false);
const assets = await hf.bot.requestHandler.request("GET", APIEndpoints.APPLICATION_ASSETS(app.id), false);
const embed = {
title: `${app.name}`,
@ -205,7 +205,7 @@ appinfo.callback = async function (msg, line) {
links.push(`[Privacy Policy](${app.privacy_policy_url})`);
}
if (assets.length > 0) {
links.push(`[Assets](${API_URL + CDNEndpoints.APPLICATION_ASSETS(app.id)})`);
links.push(`[Assets](${API_URL + APIEndpoints.APPLICATION_ASSETS(app.id)})`);
}
if (images.length > 0 || links.length > 0) {