make labscore icon in footer use brand static

This commit is contained in:
derpystuff 2023-07-09 12:36:34 +02:00
parent 07893bba18
commit c2c8241080
7 changed files with 22 additions and 8 deletions

5
labscore/utils/cdn.js Normal file
View file

@ -0,0 +1,5 @@
const CDN = "https://cdn.discordapp.com"
const cdnUrl = (route, size, format) => `${CDN}${route}.${format}?size=${size}`
module.exports.guildIcon = (id, hash, size = 4096, format = "png") => cdnUrl(`/icons/${id}/${hash}`, size, format)