From 2978d7f98f688d6c1df5377e22eec2ec8b1c2f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Mon, 20 Nov 2023 01:27:33 +0100 Subject: [PATCH] /post timeout handling --- lenaverse_bot/core/post.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lenaverse_bot/core/post.py b/lenaverse_bot/core/post.py index b45c5e6..894c888 100644 --- a/lenaverse_bot/core/post.py +++ b/lenaverse_bot/core/post.py @@ -71,7 +71,8 @@ class PostModal(ui.Modal, title="Post verfassen"): # warten auf User-Entscheidung if await view.wait() is True: # Entscheidungszeit abgelaufen - await interaction.user.send("Zeit abgelaufen, Post verworfen ") + await interaction.delete_original_response() + await interaction.user.send("Zeit abgelaufen, Post verworfen") _logger.info( f"User {interaction.user.name}({interaction.user.id}) timeout during /post" )