bug: self.get_url --> Pterodactyl.get_url
This commit is contained in:
parent
fa2b5a034d
commit
98dccd919e
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class Pterodactyl(commands.Cog):
|
|||
|
||||
@discord.ui.button(label="Yes", style=discord.ButtonStyle.success)
|
||||
async def yes_button(self, button:discord.ui.Button, interaction:discord.Interaction):
|
||||
requests.post(await self.get_url(interaction.guild, "power"), headers=headers, json={"signal": "stop"})
|
||||
requests.post(await Pterodactyl.get_url(interaction.guild, "power"), headers=headers, json={"signal": "stop"})
|
||||
await interaction.response.edit_message("Server stopping...", view=None)
|
||||
while True:
|
||||
async with aiohttp.ClientSession() as session:
|
||||
|
|
Reference in a new issue