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
519 stars 106 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 2 years ago

ghost commented 2 years 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 2 years ago

thats not correct they will stay but client crashes

ghost commented 2 years ago

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

spinfal commented 2 years 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 2 years ago

fixed by #57 / #65