fix: 🐛 badgeIcon

This commit is contained in:
Elysia 2023-04-23 17:54:59 +07:00
parent 4ceaadf71a
commit f38f3421fd

View File

@ -228,7 +228,7 @@ exports.Endpoints = {
guildScheduledEventCover: (scheduledEventId, coverHash, format, size) =>
makeImageUrl(`${root}/guild-events/${scheduledEventId}/${coverHash}`, { size, format }),
// Test only
BadgeIcon: hash => makeImageUrl(`${root}/badge-icons/${hash}.png`),
BadgeIcon: hash => makeImageUrl(`${root}/badge-icons/${hash}`, { format: 'png' }),
};
},
invite: (root, code, eventId) => (eventId ? `${root}/${code}?event=${eventId}` : `${root}/${code}`),