fix(forums): fixed no button being marked with success instead of danger

This commit is contained in:
Seaswimmer 2023-09-07 19:18:24 -04:00
parent 4709af1146
commit cf013e81b4
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -62,7 +62,7 @@ class Forums(commands.Cog):
else:
await interaction.response.send_message(content="You cannot close this thread!", ephemeral=True)
@ui.button(label="No", style=discord.ButtonStyle.success, emoji="")
@ui.button(label="No", style=discord.ButtonStyle.danger, emoji="")
async def resolved_button_no(self, button: ui.Button, interaction: discord.Interaction):
match = any(role_id in interaction.user.roles for role_id in await self.config.guild(interaction.guild).request_roles())
if match or interaction.user.id == interaction.channel.owner_id: