Created
April 26, 2022 01:09
-
-
Save researcx/9038cd6427980a57d6588bf7a0999290 to your computer and use it in GitHub Desktop.
export discord tags & permanent userids w/ discord.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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