forgot about svelteisms
This commit is contained in:
parent
63cbe16d5a
commit
279d8ca860
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue