fix(forums): changed no button emoji as it can't be seen against a red button background

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

View file

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