This commit is contained in:
insert 2024-10-23 21:01:27 -04:00
parent a99cceaa8b
commit ae4700ac7b
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -54,7 +54,7 @@ class misc(commands.Cog):
await interaction.response.send_message("You don't have permission in this context", ephemeral=True) await interaction.response.send_message("You don't have permission in this context", ephemeral=True)
return return
if message.channel.owner_id == interaction.user.id: if message.channel.owner_id == interaction.user.id:
if message.pinned: if not message.pinned:
await message.pin() await message.pin()
await interaction.response.send_message("Pinned", ephemeral=True) await interaction.response.send_message("Pinned", ephemeral=True)
else: else: