Don't provide non custom icon data if the user is using a custom icon

This commit is contained in:
Lncvrt committed 2026-02-02 14:12:13 -07:00
1 parent 7c24b22276
commit 9ce2d8e6ab
1 file changed
+8 -4
+8 -4
View File
@@ -112,10 +112,14 @@ export async function handler (context: Context, type: number) {
id: row.id,
username: row.username,
value,
icon: savedata.bird?.icon ?? 1,
overlay: savedata.bird?.overlay ?? 0,
birdColor: savedata.settings?.colors?.icon ?? [255, 255, 255],
overlayColor: savedata.settings?.colors?.overlay ?? [255, 255, 255],
icon: customIcon ? 1 : savedata.bird?.icon ?? 1,
overlay: customIcon ? 0 : savedata.bird?.overlay ?? 0,
birdColor: customIcon
? [255, 255, 255]
: savedata.settings?.colors?.icon ?? [255, 255, 255],
overlayColor: customIcon
? [255, 255, 255]
: savedata.settings?.colors?.overlay ?? [255, 255, 255],
customIcon
})
}