Skip to content

Instantly share code, notes, and snippets.

View TRH-Raz's full-sized avatar
💭
stalkin' fr

Raz TRH-Raz

💭
stalkin' fr
View GitHub Profile
@TRH-Raz
TRH-Raz / discord_webpack.md
Last active November 7, 2022 09:24
Discord Webpack Module Documentation

Change Account Password (Needs to be updated, i think)

  let oldpassword = "";
  let newpassword = "";

  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.getToken !== undefined) {fetch("https://discord.com/api/v9/users/@me", { "credentials": "include", "body": "{\"password\":\"" + oldpassword + "\",\"new_password\":\"" + newpassword + "\"}", "method": "PATCH", "headers": { "Authorization": m.default.getToken(), "Content-Type":"application/json" }}); return}if (m.getToken !== undefined) {fetch("https://discord.com/api/v9/users/@me", {"credentials": "include","body": "{\"password\":\"" + oldpassword + "\",\"new_password\":\"" + newpassword + "\"}","method":"PATCH","headers": {"Authorization": m.getToken(), "Content-Type":"application/json"}});return}}}]);

Discord Friend Invite Generator

webpackChunkdiscord_app.push([[[""]],{},q=>Object.values(q.c).find(e=>e.export