fix(forums): fixed no button being marked with success instead of danger
This commit is contained in:
parent
4709af1146
commit
cf013e81b4
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue