fix(Constants): fix CDN endpoint typings (#6332)

This commit is contained in:
Advaith
2021-08-08 04:45:00 -07:00
committed by GitHub
parent f13d27ca2e
commit 47d2ef3e40
2 changed files with 33 additions and 24 deletions

View File

@@ -55,10 +55,10 @@ exports.Endpoints = {
if (dynamic) format = hash.startsWith('a_') ? 'gif' : format;
return makeImageUrl(`${root}/icons/${guildId}/${hash}`, { format, size });
},
AppIcon: (clientId, hash, { format = 'webp', size } = {}) =>
makeImageUrl(`${root}/app-icons/${clientId}/${hash}`, { size, format }),
AppAsset: (clientId, hash, { format = 'webp', size } = {}) =>
makeImageUrl(`${root}/app-assets/${clientId}/${hash}`, { size, format }),
AppIcon: (appId, hash, { format = 'webp', size } = {}) =>
makeImageUrl(`${root}/app-icons/${appId}/${hash}`, { size, format }),
AppAsset: (appId, hash, { format = 'webp', size } = {}) =>
makeImageUrl(`${root}/app-assets/${appId}/${hash}`, { size, format }),
StickerPackBanner: (bannerId, format = 'webp', size) =>
makeImageUrl(`${root}/app-assets/710982414301790216/store/${bannerId}`, { size, format }),
GDMIcon: (channelId, hash, format = 'webp', size) =>