From 95669e0847e9f45486bb914c2bcc0905c88022f1 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 20 Aug 2023 16:22:27 -0400 Subject: [PATCH] fix(issues): fixed response field being added even if response textinput was empty --- issues/modals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/issues/modals.py b/issues/modals.py index 5b6dde1..b5c6dd4 100644 --- a/issues/modals.py +++ b/issues/modals.py @@ -256,7 +256,7 @@ class IssueResponseModal(discord.ui.Modal, title="Sending response message..."): status = "denied" await interaction.response.send_message(content=f"Issue request {status}.") - if self.response.value is not None: + if self.response.value != "": embed.add_field( name=f"Response from {interaction.user.name}", value=self.response.value,