Skip to content

Instantly share code, notes, and snippets.

@TRH-Raz
Last active November 7, 2022 09:24
Show Gist options
  • Save TRH-Raz/5df27a77cc4abe0a3582a4541e643f31 to your computer and use it in GitHub Desktop.
Save TRH-Raz/5df27a77cc4abe0a3582a4541e643f31 to your computer and use it in GitHub Desktop.
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.exports?.Z?.createFriendInvite).exports.Z.createFriendInvite().then(console.log)])
@TRH-Raz
Copy link
Author

TRH-Raz commented Nov 7, 2022

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