mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix(Constants): fix CDN endpoint typings (#6332)
This commit is contained in:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user