From 3638ac1ee071875089f97c56ae4b11c43582a218 Mon Sep 17 00:00:00 2001 From: FuseFairy Date: Tue, 14 Nov 2023 15:19:40 +0800 Subject: [PATCH] fix: #104 --- src/response.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/response.py b/src/response.py index 341a6f7..43e3759 100644 --- a/src/response.py +++ b/src/response.py @@ -12,8 +12,9 @@ async def send_message(chatbot: Chatbot, interaction: discord.Interaction, user_ text = '' link_embed = '' all_url = [] - - await interaction.response.defer(ephemeral=False, thinking=True) + + if not interaction.response.is_done(): + await interaction.response.defer(ephemeral=False, thinking=True) try: # Change conversation style