fix: 🚑 i got kwds mixed up

This commit is contained in:
May 2024-11-21 20:05:00 -08:00
parent 22af0306fa
commit 876e99bed0
Signed by: split
GPG key ID: C325C61F0BF517C0
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "avahooks", "name": "avahooks",
"version": "1.0.1", "version": "1.0.2",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "node ./dist/index.js", "start": "node ./dist/index.js",

View file

@ -10,7 +10,7 @@ export default async function downloadAvatarForPayload(
let response = undefined, let response = undefined,
buf = undefined buf = undefined
for (let fmt in tryFmts) { for (let fmt of tryFmts) {
endpoint.searchParams.delete("format") endpoint.searchParams.delete("format")
if (fmt) endpoint.searchParams.append("format", fmt) if (fmt) endpoint.searchParams.append("format", fmt)