Skip to content

Instantly share code, notes, and snippets.

@dgxo
Last active August 16, 2023 08:39
Show Gist options
  • Save dgxo/b937b42a8ee1f02628666567634ea4da to your computer and use it in GitHub Desktop.
Save dgxo/b937b42a8ee1f02628666567634ea4da to your computer and use it in GitHub Desktop.
Get a friend invite link!

See the website for an easier time reading.

To generate a nice invite link that links directly to your profile, you can either:

  1. Copy the code below into Discord's console and run it.
(function(){const { createFriendInvite: a } = webpackChunkdiscord_app.push([[Symbol()], {}, (req) => Object.values(req.c).find((m) => m?.exports?.Z?.createFriendInvite)]).exports.Z;webpackChunkdiscord_app.pop();let m = `Here's your friend invite: https://discord.gg/${(await a()).code}`;console.log(m);alert(m);return m;})

or

  1. Copy this into a bookmark and click it while Discord is open in your browser.
javascript:(function(){const { createFriendInvite: a } = webpackChunkdiscord_app.push([[Symbol()], {}, (req) => Object.values(req.c).find((m) => m?.exports?.Z?.createFriendInvite)]).exports.Z;webpackChunkdiscord_app.pop();let m = `Here's your friend invite: https://discord.gg/${(await a()).code}`;console.log(m);alert(m);return m;})

A friend invite on discord sent in a message with a nice embed

Comment below if you're having problems or message me on Discord!

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