The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix average color to handle errors

Luna 8df7f4f3 8978a073

+4 -1
+4 -1
utils/average-color.ts
··· 11 11 await (await fetch(url)).arrayBuffer() 12 12 ) 13 13 .raw() 14 - .toBuffer({ resolveWithObject: true }); 14 + .toBuffer({ resolveWithObject: true }) 15 + .catch(() => ({ data: null, info: null })); 16 + 17 + if (!data || !info) return null; 15 18 16 19 const { width, height } = info; 17 20 const pixelCount = width * height;