tux-discord-bot/create_invite_link.py

15 lines
353 B
Python

import sys
permissions = "274877966400"
scope = "bot+applications.commands"
# client_id = 961747147135524874
try: client_id = sys.argv[1]
except:
print("Put the client id from the discord bot behind this command")
exit(1)
url = f"https://discord.com/api/oauth2/authorize?client_id={client_id}&permissions={permissions}&scope={scope}"
print(url)