aboutsummaryrefslogtreecommitdiff
path: root/priv/static/discord_activity.js
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-07-27 15:34:28 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-07-27 15:34:28 +0000
commit407862a4e0e10ce2a035e4e5e76e26dde849aac1 (patch)
treedb8fe1c95672d31621c6bd5fe545cab5497f18df /priv/static/discord_activity.js
parentcd794243a5bba358d995e26ba024268e7d5d3f85 (diff)
downloadmediasync-407862a4e0e10ce2a035e4e5e76e26dde849aac1.tar
mediasync-407862a4e0e10ce2a035e4e5e76e26dde849aac1.tar.gz
mediasync-407862a4e0e10ce2a035e4e5e76e26dde849aac1.zip
Finish Discord activity implementation
Diffstat (limited to 'priv/static/discord_activity.js')
-rw-r--r--priv/static/discord_activity.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/priv/static/discord_activity.js b/priv/static/discord_activity.js
deleted file mode 100644
index 344c30d..0000000
--- a/priv/static/discord_activity.js
+++ /dev/null
@@ -1,20 +0,0 @@
-import { DiscordSDK } from "/static/discord-embedded-app-sdk/Discord.js";
-
-const discordSdk = new DiscordSDK(DISCORD_CLIENT_ID);
-
-discordSdk
- .ready()
- .then(() => {
- console.log("Mediasync: Discord SDK ready.");
- return discordSdk.commands.authorize({
- client_id: DISCORD_CLIENT_ID,
- response_type: "code",
- state: "",
- prompt: "none",
- scope: ["identify"],
- });
- })
- .then((result) => {
- const { code } = result;
- console.log(code);
- });