Phizilion

Untitled

Sep 20th, 2020 (edited)
641
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import discord
  2.  
  3. client = discord.Client()
  4.  
  5.  
  6. @client.event
  7. async def on_ready():
  8.     f = open("spm.txt", "a", encoding='utf-8')
  9.     async for member in client.get_guild(749343108969398332).fetch_members(limit=None):
  10.         if member.nick == None:
  11.             f.write(f"{member.name}:{str(member)}:{member.id}\n")
  12.         else:
  13.             f.write(f"{member.nick}:{str(member)}:{member.id}\n")
  14.     f.close()
  15.     print(1)
  16.  
  17.  
  18. client.run("")
  19.  
RAW Paste Data