fix(issues): fixed response field being added even if response textinput was empty
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
Seaswimmer 2023-08-20 16:22:27 -04:00
parent 7fe63e99bd
commit 95669e0847
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -256,7 +256,7 @@ class IssueResponseModal(discord.ui.Modal, title="Sending response message..."):
status = "denied" status = "denied"
await interaction.response.send_message(content=f"Issue request {status}.") await interaction.response.send_message(content=f"Issue request {status}.")
if self.response.value is not None: if self.response.value != "":
embed.add_field( embed.add_field(
name=f"Response from {interaction.user.name}", name=f"Response from {interaction.user.name}",
value=self.response.value, value=self.response.value,