mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
DBL apparently now requires json payload not simple form data for poststats
This commit is contained in:
parent
80d333403a
commit
14d93b3bd1
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user