forgot about svelteisms

This commit is contained in:
cirroskais 2024-03-18 16:28:43 -04:00
parent 63cbe16d5a
commit 279d8ca860
No known key found for this signature in database
GPG key ID: 5FC73EBF2678E33D

View file

@ -5,8 +5,8 @@
async function main() { async function main() {
const auth = await authorize().catch((e) => e); const auth = await authorize().catch((e) => e);
if (!auth) return logs.push({ type: "Auth", content: `Failure | ${JSON.stringify(auth)}` }); if (!auth) return (logs = [...logs, { type: "Auth", content: `Failure | ${JSON.stringify(auth)}` }]);
logs.push({ type: "Auth", content: JSON.stringify(auth) }); logs = [...logs, { type: "Auth", content: JSON.stringify(auth) }];
const response = await discordSdk.commands.setActivity({ const response = await discordSdk.commands.setActivity({
activity: { activity: {
@ -19,7 +19,7 @@
}, },
}); });
logs.push({ type: "Activity", content: JSON.stringify(response) }); logs = [...logs, { type: "Activity", content: JSON.stringify(response) }];
} }
main(); main();