cleanup: removed obsolete method
This commit is contained in:
parent
ae4d794258
commit
72e7d83bd7
1 changed files with 0 additions and 6 deletions
|
@ -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):
|
||||||
|
|
Reference in a new issue