-
-
Save MeguminSama/2cae24c9e4c335c661fa94e72235d4c4 to your computer and use it in GitHub Desktop.
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]); | |
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default; | |
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes); | |
var user = UserStore.getCurrentUser(); | |
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({ | |
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [], | |
}); | |
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN(); | |
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done"; |
Does anyone know how to fix the "Warning: Server did not send any experiment config. You may need to check the Send to Client box in the admin UI"?
Does anyone know how to fix the "Warning: Server did not send any experiment config. You may need to check the Send to Client box in the admin UI"?
@ReDarkTechnology This isn't an error. It means Discord isn't giving you the rollout. You can always enable it with the experiments menu. This does not guarantee that the experiment will work if there are server-side checks.
Where can I find the "experiments menu"?
No longer working on ptb 275854 (e77c9b3) Host 1.0.1061 x86 (45077) Windows 11 64-bit (10.0.22631)
VM684:2 Uncaught TypeError: Cannot convert undefined or null to object
at Function.values (<anonymous>)
at <anonymous>:2:24
@Zyrenth thanks for the patch. Gist has been updated.
@MeguminSama np, anytime
No longer working on ptb 275854 (e77c9b3) Host 1.0.1061 x86 (45077) Windows 11 64-bit (10.0.22631)
VM684:2 Uncaught TypeError: Cannot convert undefined or null to object at Function.values (<anonymous>) at <anonymous>:2:24
@ccoffield93 are you sure you're using the latest snippet? It still works on 275959 (af8afd2)
Weird-- I was a couple of PTB builds behind and that was the issue. I force-quit PTB and it updated to 275959, and the snippet worked fine.
Thanks a bunch @Zyrenth . This is the only thing keeping me able to stream content to a friend while leaving HDR on.
@Zyrenth thanks for the patch. Gist has been updated.