My collection of scripts for Discord.
friend_invitelink.js
: Generate a friend invite linkclientside_nitro.js
: Spoof the client and enable client side Discord Nitro
webpackChunkdiscord_app.push([[[Math.random()]],{},q=>Object.values(q.c).find(e=>e.exports?.default?.getCurrentUser).exports.default.getCurrentUser().premiumType=2]) |
webpackChunkdiscord_app.push([[[Math.random()]],{},q=>Object.values(q.c).find(e=>e.exports?.Z?.createFriendInvite).exports.Z.createFriendInvite().then(console.log)]) |
Here's a patched version that works for now, it will log the invite link to the console.
webpackChunkdiscord_app.push([ [Symbol()], {}, async r => r?.c && console.log('https://discord.gg/' + (await Object.values(r.c).find(a => a.exports?.default?.createFriendInvite).exports.default.createFriendInvite()).code) ]); !!webpackChunkdiscord_app.pop();Minified:
webpackChunkdiscord_app.push([[Symbol()],{},async e=>e?.c&&console.log("discord.gg/"+(await Object.values(e.c).find(e=>e.exports?.default?.createFriendInvite).exports.default.createFriendInvite()).code)]);!!webpackChunkdiscord_app.pop();
Thanks, this worked like a charm!
Here's a patched version that works for now, it will log the invite link to the console.
webpackChunkdiscord_app.push([ [Symbol()], {}, async r => r?.c && console.log('https://discord.gg/' + (await Object.values(r.c).find(a => a.exports?.default?.createFriendInvite).exports.default.createFriendInvite()).code) ]); !!webpackChunkdiscord_app.pop();Minified:
webpackChunkdiscord_app.push([[Symbol()],{},async e=>e?.c&&console.log("discord.gg/"+(await Object.values(e.c).find(e=>e.exports?.default?.createFriendInvite).exports.default.createFriendInvite()).code)]);!!webpackChunkdiscord_app.pop();
Does this have an expiry? Or a max uses? I prefer no expiry and no max uses.
Here's a patched version that works for now, it will log the invite link to the console.
webpackChunkdiscord_app.push([ [Symbol()], {}, async r => r?.c && console.log('https://discord.gg/' + (await Object.values(r.c).find(a => a.exports?.default?.createFriendInvite).exports.default.createFriendInvite()).code) ]); !!webpackChunkdiscord_app.pop();Minified:
webpackChunkdiscord_app.push([[Symbol()],{},async e=>e?.c&&console.log("discord.gg/"+(await Object.values(e.c).find(e=>e.exports?.default?.createFriendInvite).exports.default.createFriendInvite()).code)]);!!webpackChunkdiscord_app.pop();
will the link expire?
yep same question here ! I'm looking for the response and found nothing about that
will the link expire?
Yes, it expires after 7 days of creation, or after 5 uses. It is currently not possible to set unlimited uses and expiry.
I noticed the previous code is not working on the PTB build, here is another patch.
webpackChunkdiscord_app.push([
[Symbol()], {},
async r => r?.c && console.log('https://discord.gg/' + (await Object.values(r.c).find(a => a.exports?.Z?.createFriendInvite).exports.Z.createFriendInvite()).code)
]);
!!webpackChunkdiscord_app.pop();
webpackChunkdiscord_app.push([[Symbol()],{},async e=>e?.c&&console.log("https://discord.gg/"+(await Object.values(e.c).find((e=>e.exports?.Z?.createFriendInvite)).exports.Z.createFriendInvite()).code)]);!!webpackChunkdiscord_app.pop();
thanks for your patch ! so sad that it's just for 7 days or 5 uses...
Here's a patched version that works for now, it will log the invite link to the console.
Minified: