Discord-Oxygen / Discord-Console-hacks

A collection of JavaScript Codes I've made to enhance the User Experience of Discord and some other Discord related stuff
GNU General Public License v3.0
521 stars 114 forks source link

Getting all badges will also (visual) quarantine your account, but after that all badges including quarantine will disappear. #59

Closed ghost closed 1 year ago

ghost commented 1 year ago

Reproduce

Use console command below:

window.webpackChunkdiscord_app.push([[Math.random()], {}, (req) => {for (const m of Object.keys(req.c).map((x) => req.c[x].exports).filter((x) => x)) {if (m.default && m.default.getCurrentUser !== undefined) {return m.default.getCurrentUser().flags = -1;}if (m.getCurrentUser !== undefined) {return m.getCurrentUser().flags = -1}}}]);window.webpackChunkdiscord_app.push([[Math.random()], {}, (req) => {for (const m of Object.keys(req.c).map((x) => req.c[x].exports).filter((x) => x)) {if (m.default && m.default.getCurrentUser !== undefined) {return m.default.getCurrentUser().public_flags += 1;}if (m.getCurrentUser !== undefined) {return m.getCurrentUser().public_flags += 1}}}]);
visuality1337 commented 1 year ago

thats not correct they will stay but client crashes

ghost commented 1 year ago

For me, client doesn't crash, they just disappear

spinfal commented 1 year ago

That's because you are giving yourself every flag, and account quarantine is a flag.

Check out my PR https://github.com/hxr404/Discord-Console-hacks/pull/57/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R157-R164

hxr404 commented 1 year ago

fixed by #57 / #65