Liberta007
Liberta007
DIAdiscord.js - Imagine an app
Created by Liberta007 on 8/9/2023 in #djs-questions
Forking Discord.js
Hi, I needed to add some lines in discord.js package so I forked the repository and edited what I wanted, then replaced the discord.js version in package.json with the forked repo like this : "discord.js": "git+https://github.com/my-username/discord.js.git#main", I ran npm install and I got this error :
npm ERR! npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! npm ERR! Unsupported URL Type "workspace:": workspace:^
npm ERR! npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! npm ERR! Unsupported URL Type "workspace:": workspace:^
And after some researches I found that I should use yarn, so I ran yarn install, but the structure of the installed package is different from the official one, I found that the package is actually in discord.js/packages/discord.js, so some imports in other packages won't work. In conclusion, I need help using the forked package.
3 replies
DIAdiscord.js - Imagine an app
Created by Liberta007 on 8/8/2023 in #djs-questions
Spotify Activity
Hi, Is there a way to retrieve the Spotify link of the currently playing song from a user's activity ? I can already retrieve the title and other infos using Presence.activities but I can't seem to find a URL.
19 replies