removed epheremal from an edit function
This commit is contained in:
parent
4e8867c473
commit
16b5663e41
1 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,7 @@ class Pterodactyl(commands.Cog):
|
|||
}
|
||||
]
|
||||
requests.post(await self.get_url(interaction.guild, "power"), headers=headers, json={"signal": "start"})
|
||||
await interaction_message.edit(content="Packwiz installer started...", ephemeral=True)
|
||||
await interaction_message.edit(content="Packwiz installer started...")
|
||||
while True:
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get(await self.get_url(interaction.guild, "resources"), headers=headers) as response:
|
||||
|
@ -104,7 +104,7 @@ class Pterodactyl(commands.Cog):
|
|||
await self.put(await self.get_url(interaction.guild, "startup/variable"), headers, data)
|
||||
elif response_dict['attributes']['current_state'] == "running" or response_dict['attributes']['current_state'] == "starting":
|
||||
passed_info = [old_startup_args[0], old_startup_args[1], headers, put_data, new_put_data, interaction_message]
|
||||
await interaction_message.edit("Server is already running! Are you sure you'd like to stop the server for updates?", ephemeral=True, view=self.UpdateButtons(timeout=180, passed_info=passed_info))
|
||||
await interaction_message.edit("Server is already running! Are you sure you'd like to stop the server for updates?", view=self.UpdateButtons(timeout=180, passed_info=passed_info))
|
||||
|
||||
class UpdateButtons(discord.ui.View):
|
||||
def __init__(self, timeout, passed_info):
|
||||
|
@ -147,7 +147,7 @@ class Pterodactyl(commands.Cog):
|
|||
|
||||
@discord.ui.button(label="No", style=discord.ButtonStyle.red, emoji="❌")
|
||||
async def no_button(self, button:discord.ui.Button, interaction:discord.Interaction):
|
||||
await interaction.response.edit_message(content=f"Command cancelled.")
|
||||
await self.passed_info[5].edit(content=f"Command cancelled.")
|
||||
|
||||
@app_commands.command()
|
||||
async def test(self, interaction: discord.Interaction, endpoint: str = None):
|
||||
|
|
Reference in a new issue