pending_fix: maybe fixed updating while server is running?
This commit is contained in:
parent
6dc8c8abf0
commit
52ebccc1d9
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ class Pterodactyl(commands.Cog):
|
|||
|
||||
@ui.button(label="Yes", style=discord.ButtonStyle.success)
|
||||
async def yes_button(self, button:ui.Button, interaction:discord.Interaction):
|
||||
requests.post(await Pterodactyl.get_url(interaction.guild, "power"), headers=self.passed_info['headers'], json={"signal": "stop"})
|
||||
requests.post(await Pterodactyl.get_url(self.passed_info['interaction'].guild, "power"), headers=self.passed_info['headers'], json={"signal": "stop"})
|
||||
await self.passed_info['interaction'].edit_original_response("Server stopping...", view=None)
|
||||
while True:
|
||||
async with aiohttp.ClientSession() as session:
|
||||
|
|
Reference in a new issue