Skip to content

Instantly share code, notes, and snippets.

@CyberFlameGO
Created January 6, 2022 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CyberFlameGO/da9e8fd699e7e4808405345fb716c059 to your computer and use it in GitHub Desktop.
Save CyberFlameGO/da9e8fd699e7e4808405345fb716c059 to your computer and use it in GitHub Desktop.
Quick way of deleting webhooks, useful for disabling token-grabbers which rely on Discord webhooks
import requests
url = input("Put your URL here: ")
result = requests.request(method="DELETE", url=url)
try:
result.raise_for_status()
except requests.exceptions.HTTPError as err:
print("Error: " + str(err))
else:
print("204 No Content")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment