fix: fixed get_session
This commit is contained in:
parent
a2488a53bd
commit
0f73bbaabc
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class Pterodactyl(commands.Cog):
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Accept": "application/json"
|
"Accept": "application/json"
|
||||||
}
|
}
|
||||||
url = f"https://{await self.config.guild(guild).base_url}/api/client/servers/{await self.config.guild(guild).server_id}"
|
url = f"https://{await self.config.guild(guild).base_url()}/api/client/servers/{await self.config.guild(guild).server_id()}"
|
||||||
if endpoint:
|
if endpoint:
|
||||||
url += '/' + endpoint
|
url += '/' + endpoint
|
||||||
async with aiohttp.ClientSession(url=url, headers=headers) as session:
|
async with aiohttp.ClientSession(url=url, headers=headers) as session:
|
||||||
|
|
Reference in a new issue