mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 15:57:02 +01:00 
			
		
		
		
	DBL apparently now requires json payload not simple form data for poststats
This commit is contained in:
		@@ -9,7 +9,7 @@ class DiscordBotsOrg(): # https://discordbots.org
 | 
				
			|||||||
        headers = {"Authorization": self.token}
 | 
					        headers = {"Authorization": self.token}
 | 
				
			||||||
        payload = {"server_count": count, "shard_count": shard_count, "shard_no": shard_id}
 | 
					        payload = {"server_count": count, "shard_count": shard_count, "shard_no": shard_id}
 | 
				
			||||||
        async with aiohttp.ClientSession() as aioclient:
 | 
					        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/
 | 
					class BotsDiscordPw(): # https://bots.discord.pw/
 | 
				
			||||||
    def __init__(self, client_id, token):
 | 
					    def __init__(self, client_id, token):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user