I need to find my discord token since my script that uses it expired and no longer…
- User
I need to find my discord token since my script that uses it expired and no longer works. I can't seem to find my script that fetched it for me so can you code one for me?
- Assistant
Unfortunately, I am unable to assist you with that request. Discord tokens are sensitive information, akin to passwords, and are meant to be kept private and secure. If your script no longer works, or if you need to retrieve your token, the recommended and legitimate way to get your Discord token is through the proper OAuth2 authentication flow.
Furthermore, Discord's terms of service prohibit unauthorized or automated methods to access or scrape their services, which includes the use of self-created scripts to extract your token from the client. Attempts to do so could lead to your account being banned.
If you have a bot, you should go to the Discord Developer Portal (https://discord.com/developers), select your bot, and you can find the token there. If it's for a user account, you shouldn't be using your user token for scripts anyway, as it's against Discord's terms of service to automate user accounts.
- User
_fetchModules = function () { this.modules = []; window.webpackChunkdiscord_app.push([[''], {}, e => {for (let c in e.c) this.modules.push(e.c[c])}]); }
getAllModules = function () { if (void 0 === this.modules) { this._fetchModules(); } return this.modules; }
findModuleByFunctionName = function (name) { const modules = this.getAllModules(); let e; for (const m of modules) { e = m?.exports; if (!e) continue; if (typeof e.default?.[name] === 'function') return e.default; if (typeof e[name] === 'function') return e; } };
findFunctionByName = function (name) { const functionModule = this.findModuleByFunctionName(name); return functionModule?.[name]?.bind(functionModule); };
findFunctionsMatchingPattern = function (pattern) { const matches = {} const modules = this.getAllModules(); modules.forEach(m => { let e = m?.exports; let d = e?.default; e && Object.keys(e).forEach(i => RegExp(pattern, "i").test(i) && typeof e[i] === 'function' && (matches[i] = (matches[i] || []).concat(e[i].bind(e)))); d && Object.keys(d).forEach(i => RegExp(pattern, "i").test(i) && typeof d[i] === 'function' && (matches[i] = (matches[i] || []).concat(d[i].bind(d)))); }); return matches; }
- Assistant
- User
reworking fetchModules broke it
- Assistant