Skip to content

Instantly share code, notes, and snippets.

@oSumAtrIX
Last active April 30, 2024 20:38
Show Gist options
  • Star 43 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save oSumAtrIX/8c0540c80ca2b91efa18d137e239570f to your computer and use it in GitHub Desktop.
Save oSumAtrIX/8c0540c80ca2b91efa18d137e239570f to your computer and use it in GitHub Desktop.
Useful snippets for Discord

Discord console scripts

My collection of scripts for Discord.

Scripts

  • friend_invitelink.js: Generate a friend invite link
  • clientside_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])
@SwiftWinds
Copy link

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.

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