From aa38c0a4f83b8b07b5ca6bdb2a3456d9ed7f7714 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sat, 5 Feb 2022 20:56:36 -0500 Subject: [PATCH] oops --- client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.py b/client.py index a5ca54d..ceb6bca 100644 --- a/client.py +++ b/client.py @@ -68,7 +68,7 @@ class client(): headers = {"Authorization": "Bot {0}".format(self.config["token"]), "User-Agent": "mbdf (cynic.moe, v1)", "Content-Type": "application/json"} return requests.get(endpoint, headers = headers).text def execute_webhook(self, link, message, name = "webhook"): - requests.post(link, headers = headers, data = json.dumps({"content": message, "username": name})) + requests.post(link, data = json.dumps({"content": message, "username": name})) def send_msg(self, id, message): endpoint = f"https://discordapp.com/api/channels/{id}/messages" # fstring wasn't working for the auth