Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

vilewired/Discord-Friend-Link-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

OUTDATED

They got rid of both the endpoint and the js command to create this invite, I will not search for alternatives.

OUTDATED

Discord-Friend-Link-Generator

This is a Friend Link Generator written in python for discord. It uses discord's latest api (currently v9) to get a friend link code.
These are very similar to the server invite links and look like this when you send them in Discord: image

So far I have not found a way to change the default max_age and max_uses which set the amount of time the link will be working and the amount of people being able to use it.

max_age = 604800 (seconds) = 1 week
max_uses = 5 (5 people can use the link)

If you don't want to find your token to use this then you can also just paste some js code inside the console of your current discord session:

webpackChunkdiscord_app.push([[[Math.random()]],{},q=>Object.values(q.c).find(e=>e.exports?.Z?.createFriendInvite).exports.Z.createFriendInvite().then(x => console.log('discord.gg/' + x.code))])

Warining

THIS IS AGAINST DISCORDS TOS
Yet I believe the chance of getting banned for this is very low..

Credits goes to this gist aswell, its the reason I wrote this.