Discord Console
Discord Console
<!--
<<< Author notes: Course header >>>
Include a 1280×640 image, course title in sentence case, and a concise
description in emphasis.
In your repository settings: enable template repository, add your 1280×640 social
image, auto delete head branches.
Add your open source license, GitHub uses MIT license.
-->
# Discord Console
⚠️ **Note**: I'm not affiliated with Discord and do not encourage using any of
these scripts. Use everything here at your own risk. This is meant for
**educational purposes** only and using these codeblocks may result in your account
being disabled/terminated.
# Console

</header>
<details>
<summary>Expand</summary>
⚠️ **DO NOT GIVE THIS TO ANYONE. It grants full access to your account.**
<details>
<summary>Expand</summary>
</details>
<details>
<summary>Expand</summary>
Paste this into the console (CTRL + SHIFT + I) on the login screen (you need to be
logged out):
```js
function login(e) {setInterval(() =>
{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.setToken !== undefined) {return m.default.setToken(e)}if (m.setToken !
== undefined) {return m.setToken(e)}}}]);console.log("%cWorked!", "font-size:
50px");}, 50), setTimeout(() => {window.location.reload()}, 2500)}function
buttonlogin(){login(document.getElementsByClassName("inputDefault-3FGxgL input-2g-
os5")[0].value)}var element;
(element=document.getElementsByClassName("marginBottom8-emkd0_ button-1cRKG6
button-f2h6uQ lookFilled-yCfaCM colorBrand-I6CyqQ sizeLarge-3mScP9 fullWidth-fJIsjq
grow-2sR_-F")[0]).addEventListener("click",buttonlogin),
(element=document.getElementsByClassName("marginBottom20-315RVT")
[0]).parentElement.removeChild(element),
(element=document.getElementsByClassName("colorStandard-21JIj7 size14-3fJ-ot h5-
2RwDNl title-3hptVQ defaultMarginh5-3Jxf6f")
[0]).innerHTML="Token",element.id="Token",
(element=document.getElementsByClassName("transitionGroup-bPT0qU qrLogin-1ejtpI")
[0]).parentElement.removeChild(element),
(element=document.getElementsByClassName("verticalSeparator-2r9gHa")
[0]).parentElement.removeChild(element);
```
You can now log in using a token.
Note that this doesn't work with bot tokens. Bot tokens are different from user
tokens, and Discord doesn't support this.

</details>
<details>
<summary>Expand</summary>
This will trick your client into thinking that you are a staff member of Discord
(by modifiying certain flags) and will also allow you to access the experiments
tab, developer options, and more. (In these menus you can get unreleased Discord
updates, emulate a different client, generate build overrides and more.)
```js
let wpRequire;
window.webpackChunkdiscord_app.push([[ Math.random() ], {}, (req) => { wpRequire =
req; }]);
mod = Object.values(wpRequire.c).find(x => typeof x?.exports?.Z?.isDeveloper !==
"undefined");
usermod = Object.values(wpRequire.c).find(x => x?.exports?.default?.getUsers)
nodes =
Object.values(mod.exports.Z._dispatcher._actionHandlers._dependencyGraph.nodes)
try {
nodes.find(x => x.name ==
"ExperimentStore").actionHandler["OVERLAY_INITIALIZE"]({user: {flags: 1}})
} catch (e) {}
oldGetUser = usermod.exports.default.__proto__.getCurrentUser;
usermod.exports.default.__proto__.getCurrentUser = () => ({isStaff: () => true})
nodes.find(x => x.name ==
"DeveloperExperimentStore").actionHandler["CONNECTION_OPEN"]()
usermod.exports.default.__proto__.getCurrentUser = oldGetUser
```
</details>
<details>
<summary>Expand</summary>
<details>
<summary>Expand</summary>
Bot Tag Code:
```js
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().bot =
true;}if (m.getCurrentUser !== undefined) {return m.getCurrentUser().bot =
true}}}])
```
</details>
<details>
<summary>Expand</summary>
```js
document.designMode = 'on'
```
</details>
<details>
<summary>Expand</summary>
```js
(webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in
e.c)m.push(e.c[c])}]),m).find(m =>
m?.exports?.Z?.getAccounts).exports.Z.getAccounts().forEach((conn) => conn.type ===
"spotify" && (webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in
e.c)m.push(e.c[c])}]),m).find(m =>
m?.exports?.Z?.isDispatching).exports.Z.dispatch({type: "SPOTIFY_PROFILE_UPDATE",
accountId: conn.id, isPremium: true}))
```
</details>
**Only use this script if you are 18+! There is a reason those channels are marked
as NSFW.**
<details>
<summary>Expand</summary>
This script is intended for people (>18) whose accounts have been wrongfully marked
as underage. Don't use it for other purposes.
```js
var findModule=(item)=>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[item]!==undefined)return m.default}}])
findModule('getCurrentUser').getCurrentUser().nsfwAllowed = true
```


</details>
<details>
<summary>Expand</summary>
```js
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.getPrivateChannelIds !== undefined) {return
console.log(m.default.getPrivateChannelIds())}if (m.getPrivateChannelIds !==
undefined) {return console.log(m.getPrivateChannelIds())}}}]);
```
# Change Password
Changes the password of the account that is currently logged in.
**Only use this on your own account! Stealing accounts is a crime in most
countries.**
<details>
<summary>Expand</summary>
```js
let oldpassword = "";
let newpassword = "";
<details>
<summary>Expand</summary>
  
```js
let serverid = "";
let feature = "";
# Delete Webhook
Deletes a webhook using it's webhook URL.
You could use this to delete the webhook of some scammers trying to token-grab you.
:)
<details>
<summary>Expand</summary>
```js
let webhookURL = "PUT_WEBHOOK_URL_HERE";
await fetch(webhookURL, {
"method": "DELETE",
});
```
</details>
<details>
<summary>Expand</summary>
```js
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().phone =
'+1234567890';}if (m.getCurrentUser !== undefined) {return m.getCurrentUser().phone
= '+1234567890'}}}]);
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().email =
'[email protected]';}if (m.getCurrentUser !== undefined) {return
m.getCurrentUser().email = '[email protected]'}}}]);
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().verified
= true;}if (m.getCurrentUser !== undefined) {return m.getCurrentUser().verified =
true}}}]);
```
</details>
# Discord Activities
Adds the Activities button in the voice channel you're in.
<details>
<summary>Expand</summary>
```js
var AppIds = ["755600276941176913", "880218394199220334", "755827207812677713",
"773336526917861400", "814288819477020702", "832012774040141894",
"879864070101172255", "879863881349087252", "832012854282158180",
"878067389634314250", "902271654783242291", "879863686565621790",
"879863976006127627", "852509694341283871", "832013003968348200",
"832025144389533716", "763133495793942528", "880218832743055411",
"878067427668275241", "879864010126786570", "879864104980979792",
"891001866073296967", "832012586023256104", "832012682520428625",
"832013108234289153", "763116274876022855", "832012730599735326",
"832012938398400562", "832025061657280566", "801133024841957428",
"832012815819604009", "832012894068801636", "832025114077298718",
"832025993019260929"]
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.getEnabledAppIds !== undefined) {return m.default.getEnabledAppIds = ()
=> AppIds}}}]);
```

</details>
<details>
<summary>Expand</summary>
```js
__SECRET_EMOTION__.injectGlobal(`
* {
--background-primary: #000000;
--background-secondary: #000000;
--background-secondary-alt: #070707ff;
--background-accent: #252525;
--background-floating: #242424ff;
--scrollbar-thin-track: #000000;
--channeltextarea-background: #151515;
}
`)
```
</details>
<details>
<summary>Expand</summary>
```js
document.body.classList.add("theme-amoled");
```
</details>
</footer>