From e19143de18e7b0f5e9475b8afffee11acbfc33d8 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 18 Aug 2023 17:57:25 -0400 Subject: [PATCH] fix(issues): fixed some minor issues with the approve/deny system --- issues/issues.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/issues/issues.py b/issues/issues.py index ebd3ad5..5c054a2 100644 --- a/issues/issues.py +++ b/issues/issues.py @@ -164,7 +164,7 @@ class Issues(commands.Cog): async def issue_response_button_approve(self, interaction: discord.Interaction, button: discord.ui.Button): await interaction.response.send_modal(Issues.IssueResponseModal(self.channel, self.message_id, self.user, True)) - @discord.ui.button(label="Deny", style=discord.ButtonStyle.green) + @discord.ui.button(label="Deny", style=discord.ButtonStyle.danger) async def issue_response_button_deny(self, interaction: discord.Interaction, button: discord.ui.Button): await interaction.response.send_modal(Issues.IssueResponseModal(self.channel, self.message_id, self.user, False)) @@ -195,7 +195,7 @@ class Issues(commands.Cog): embed.color = 15671552 embed.title = "Issue Request Denied" await interaction.response.send_message(content="Issue request denied.", ephemeral=True) - if self.response is not None: - embed.add_field(name=f"Response from {interaction.user.name}", value=self.response.value) - await message.edit(embed=embed) + if self.response.value is not None: + embed.add_field(name=f"Response from {interaction.user.name}", value=self.response.value, inline=False) + await message.edit(embed=embed, view=None) await self.user.send(embed=embed)