Updated api to version 8 #2

Closed
Keksnet wants to merge 1 commits from master into master
Showing only changes of commit 7c18aab508 - Show all commits

View File

@@ -43,7 +43,7 @@ def write_bad_file(dc_invite, today) :
c.close()
def check(invite_str, today, show_bad, write_bad, show_timeout, colors) :
apilink = "https://discordapp.com/api/v6/invite/" + invite_str
apilink = "https://discord.com/api/v8/invites/" + invite_str
USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:65.0) Gecko/20100101 Firefox/65.0"
headers = {"user-agent": USER_AGENT}
@@ -173,4 +173,4 @@ def main() :
os.system("pause")
main()