diff --git a/player.py b/player.py index 0423c81..288ea9e 100644 --- a/player.py +++ b/player.py @@ -1,8 +1,10 @@ from email import message +import json import aiohttp, os from datetime import datetime from discord import Embed from exceptions import * +import yarl class Player: original_request = "" @@ -139,7 +141,7 @@ class Player: async def GetSteamIDOfProfile(self, any:str): async with aiohttp.ClientSession(cookies={"secretkey":os.getenv("BACKEND_SECRETKEY")}) as session: - async with session.get(f"{os.getenv('BACKEND_URL')}/api/profile/steam?any={any}", ssl=False) as response: + async with session.post(url=f"{os.getenv('BACKEND_URL')}/api/profile/steam", json = {"any":any}, ssl=False) as response: try: response = await response.json() except: