Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@researcx
Created April 26, 2022 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save researcx/9038cd6427980a57d6588bf7a0999290 to your computer and use it in GitHub Desktop.
Save researcx/9038cd6427980a57d6588bf7a0999290 to your computer and use it in GitHub Desktop.
export discord tags & permanent userids w/ discord.py
#!/usr/bin/python3
import discord
token = ("")
class ExportFriends(discord.Client):
async def on_connect(self):
friendslist = client.user.friends
for user in friendslist:
try:
print(user.name+"#"+user.discriminator + " ("+str(user.id)+")")
except:
print(user.name+"#"+user.discriminator + " ("+str(user.id)+")")
client = ExportFriends()
client.run(token, bot = False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment