feat: support user guilds (#10995)

This commit is contained in:
Danial Raza
2025-07-16 22:27:54 +02:00
committed by GitHub
parent f469f74aca
commit baa08b8fbb
4 changed files with 95 additions and 16 deletions

View File

@@ -142,6 +142,10 @@ test('soundboardSound', () => {
expect(cdn.soundboardSound(id)).toEqual(`${baseCDN}/soundboard-sounds/${id}`);
});
test('guildTagBadge', () => {
expect(cdn.guildTagBadge(id, hash)).toEqual(`${baseCDN}/guild-tag-badges/${id}/${hash}.webp`);
});
test('makeURL throws on invalid size', () => {
expect(() => cdn.avatar(id, animatedHash, { size: 5 })).toThrow(RangeError);
});