From 9cf24faaaf6f76b952e778b527a61ceeb8c87034 Mon Sep 17 00:00:00 2001 From: cirroskais Date: Mon, 18 Mar 2024 14:58:51 -0400 Subject: [PATCH] we dev on prod in here boys --- src/App.svelte | 13 ++++++++----- src/lib/discord.js | 4 ---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 1fe70c4..9f0fabd 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,12 +1,15 @@
diff --git a/src/lib/discord.js b/src/lib/discord.js index 9f879da..2f7a4a3 100644 --- a/src/lib/discord.js +++ b/src/lib/discord.js @@ -1,11 +1,8 @@ const CLIENT_ID = "869016244613951539"; import { DiscordSDK } from "@discord/embedded-app-sdk"; -import { writable } from "svelte/store"; const discordSdk = new DiscordSDK(CLIENT_ID); -export let information = writable(); - export async function authorize() { const { code } = await discordSdk.commands.authorize({ client_id: CLIENT_ID, @@ -28,7 +25,6 @@ export async function authorize() { const { access_token } = await response.json(); const auth = await discordSdk.commands.authenticate({ access_token }); - information.set(auth); return auth; }