|
|
@ -292,7 +292,7 @@ class Player: |
|
|
|
async def CreateDiscordId(self, discord_id): |
|
|
|
async with aiohttp.ClientSession(cookies={ |
|
|
|
"secretkey":os.getenv("BACKEND_SECRETKEY")}) as session: |
|
|
|
async with session.post(f"{os.getenv('BACKEND_URL')}/api/discord?discord_id={discord_id}&steam_id={self.steam64}", ssl = False) as response: |
|
|
|
async with session.post(f"{os.getenv('BACKEND_URL')}/api/discord?discord_id={discord_id}&steam64={self.steam64}", ssl = False) as response: |
|
|
|
result = await response.text() |
|
|
|
if response.status == 406: |
|
|
|
return False |
|
|
|