feat: add support for role icons (#6633)

This commit is contained in:
Shubham Parihar
2021-10-03 22:25:29 +05:30
committed by GitHub
parent a8c21cd754
commit 7129965423
5 changed files with 91 additions and 3 deletions

View File

@@ -73,6 +73,8 @@ exports.Endpoints = {
TeamIcon: (teamId, hash, options) => makeImageUrl(`${root}/team-icons/${teamId}/${hash}`, options),
Sticker: (stickerId, stickerFormat) =>
`${root}/stickers/${stickerId}.${stickerFormat === 'LOTTIE' ? 'json' : 'png'}`,
RoleIcon: (roleId, hash, format = 'webp', size) =>
makeImageUrl(`${root}/role-icons/${roleId}/${hash}`, { size, format }),
};
},
invite: (root, code) => `${root}/${code}`,