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], guild_ids=[732793772697583623],
) )
async def pinthreadmessage(self, interaction: nextcord.Interaction): async def pinthreadmessage(self, interaction: nextcord.Interaction, message: nextcord.Message):
if interaction.message.channel.owner_id == interaction.user.id: if message.channel.owner_id == interaction.user.id:
await interaction.message.pin() await message.pin()
await interaction.response.send_message("Pinned", ephemeral="True") await interaction.response.send_message("Pinned", ephemeral="True")
else: else:
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")