From 14d93b3bd1cb970506ff6cf4c1f6d2bdd7b7f7d2 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sat, 11 Aug 2018 23:25:06 +0000 Subject: [PATCH] DBL apparently now requires json payload not simple form data for poststats --- discordbot/titanembeds/poststats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordbot/titanembeds/poststats.py b/discordbot/titanembeds/poststats.py index fc263f4..f6faa5d 100644 --- a/discordbot/titanembeds/poststats.py +++ b/discordbot/titanembeds/poststats.py @@ -9,7 +9,7 @@ class DiscordBotsOrg(): # https://discordbots.org headers = {"Authorization": self.token} payload = {"server_count": count, "shard_count": shard_count, "shard_no": shard_id} async with aiohttp.ClientSession() as aioclient: - await aioclient.post(self.url, data=payload, headers=headers) + await aioclient.post(self.url, json=payload, headers=headers) class BotsDiscordPw(): # https://bots.discord.pw/ def __init__(self, client_id, token):