Skip to content

Instantly share code, notes, and snippets.

@GGORG0
Created January 9, 2022 12:19
Show Gist options
  • Save GGORG0/1bf91278f0000c17b08b930ae9e8dd08 to your computer and use it in GitHub Desktop.
Save GGORG0/1bf91278f0000c17b08b930ae9e8dd08 to your computer and use it in GitHub Desktop.
Discord start custom activity

How to start a custom activity on Discord? I wanna do this!

image

  1. Inject Cumcord if you don't have it installed: (paste in console)
var oReq = new XMLHttpRequest();
oReq.addEventListener("load", () => eval(oReq.responseText));
oReq.open("GET", "https://raw.githubusercontent.com/Cumcord/Cumcord/stable/dist/build.js");
oReq.send();
  1. Create 2 apps on the Dev Portal (https://discord.com/developers/applications) a junk app and the actual app.
  2. Paste this into the console, replacing APP_ID with the ID of the junk app:
application = "APP_ID";
Dispatcher = (webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m => m?.exports?.default?.isDispatching)
Dispatcher.exports.default.dirtyDispatch({
  type: "DEVELOPER_TEST_MODE_AUTHORIZATION_SUCCESS",
  applicationId: application,
  originURL: `https://cumcord.com`
})
  1. Paste this into the console:
let discatch = cumcord.patcher.instead("dispatch", window.cumcord.modules.webpack.findByProps("isDispatching"), (arguments, originalFunction) => { try { originalFunction(arguments) } catch(error) { console.warn("%cDispatch error caught!\n%c", "color: orange; font-weight: bold;", "", error) } });
  1. Paste this into the console:
cumcord.modules.webpackModules.findByProps('inTestModeForEmbeddedApplication').inTestModeForEmbeddedApplication = true
  1. Join any voice channel
  2. Start the junk activity
  3. Paste this into the console, replacing APP_ID with the ID of the actual app:
application = "APP_ID";
Dispatcher = (webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m => m?.exports?.default?.isDispatching)
Dispatcher.exports.default.dirtyDispatch({
  type: "DEVELOPER_TEST_MODE_AUTHORIZATION_SUCCESS",
  applicationId: application,
  originURL: `https://cumcord.com`
})
  1. Start the actual activity
  2. Leave the VC
  3. Reload Discord to get rid of all the stuff
  4. Close the banner that pops up at the top
  5. Enjoy!
@phorcys420
Copy link

stop using xmlhttprequest you fucking piece of shit

@Pengwius
Copy link

Pengwius commented Jan 9, 2022

@phorcys420 is right, use fetch instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment