aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/exts/kubernetes/deployments.py
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2021-11-20 20:14:46 +0000
committerGravatar GitHub <[email protected]>2021-11-20 20:14:46 +0000
commit13da1833e62af19b4de2a00d47c833963c525e19 (patch)
treec07f90d663928c9d6aaa4d6b9c2d106fb1641490 /arthur/exts/kubernetes/deployments.py
parentRefactor workflows, add concurrency options, separate build and deploy (#10) (diff)
Edit deployment interaction messages, rather than send new (#12)
Diffstat (limited to 'arthur/exts/kubernetes/deployments.py')
-rw-r--r--arthur/exts/kubernetes/deployments.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/arthur/exts/kubernetes/deployments.py b/arthur/exts/kubernetes/deployments.py
index 4d00b4f..936c390 100644
--- a/arthur/exts/kubernetes/deployments.py
+++ b/arthur/exts/kubernetes/deployments.py
@@ -61,16 +61,16 @@ class ConfirmDeployment(ui.View):
f"`{self.deployment}` in namespace `{self.namespace}`."
)
- await interaction.response.send_message(content=description, ephemeral=False)
+ await interaction.message.edit(content=description, view=None)
self.stop()
@ui.button(label="Cancel", style=ButtonStyle.grey, row=0)
async def cancel(self, _button: ui.Button, interaction: Interaction) -> None:
"""Logic for if the deployment is not approved."""
- await interaction.response.send_message(
+ await interaction.message.edit(
content=":x: Redeployment aborted",
- ephemeral=False,
+ view=None,
)
self.stop()