cleanup: removed obsolete method

This commit is contained in:
Seaswimmer 2023-07-24 08:59:45 -04:00
parent ae4d794258
commit 72e7d83bd7
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -53,12 +53,6 @@ class Pterodactyl(commands.Cog):
url += '/' + endpoint url += '/' + endpoint
return url return url
async def put(self, url: str, headers: dict, data: dict):
"""Sends an asyncio PUT request to the specified URL with the specified headers and data."""
async with aiohttp.ClientSession() as session:
async with session.put(url, headers=headers, json=data) as response:
return response
@app_commands.command(name="update", description="Updates the server.") @app_commands.command(name="update", description="Updates the server.")
@app_commands.guild_only() @app_commands.guild_only()
async def update(self, interaction: discord.Interaction): async def update(self, interaction: discord.Interaction):