Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Inject your own custom Activities on Discord

License

Notifications You must be signed in to change notification settings

LeWarpy/discord-custom-activities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-custom-activities

Summon your own custom Activities on Discord

Screenshot

Setup

  • Node.JS >=16.15
  • Create an application on discord.com/developers/
  • Add the Application ID to config.json in the format
"YOUR_APPLICATION_ID": "https://your_endpoint_url.net"
  • Install dependencies npm install
  • Run node index.js

How to Use

Run the following snippet in your Discord console

let application = "YOUR_APPLICATION_ID_HERE";
(webpackChunkdiscord_app.push([[''],{},e=>{mods = Object.values(e.c)}]));
const { exports: { Z } } = mods.findLast(m => m?.exports?.Z?.dispatch);
Z.dispatch({
  type: "DEVELOPER_TEST_MODE_AUTHORIZATION_SUCCESS",
  applicationId: application, // Testing Discord app
  originURL: "http://localhost:3000/launch/${application}"
});

Join a voice channel and select it from the activity menu.

This is only a proof-of-concept for now, the opened activities close sometimes after ~1 minute.

Example

Application "FranceInfo" (YouTube live player) => ID : 910520972451409960

Credits