This commit is contained in:
insert 2024-10-23 20:46:08 -04:00
parent d6d02d7873
commit 09d36dcbd3
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -56,9 +56,9 @@ class misc(commands.Cog):
],
guild_ids=[732793772697583623],
)
async def pinthreadmessage(self, interaction: nextcord.Interaction):
if interaction.message.channel.owner_id == interaction.user.id:
await interaction.message.pin()
async def pinthreadmessage(self, interaction: nextcord.Interaction, message: nextcord.Message):
if message.channel.owner_id == interaction.user.id:
await message.pin()
await interaction.response.send_message("Pinned", ephemeral="True")
else:
await interaction.response.send_message("You don't have permission in this context", ephemeral="True")