From 09d36dcbd30084f45db4d297244f09b2a8621664 Mon Sep 17 00:00:00 2001 From: insert Date: Wed, 23 Oct 2024 20:46:08 -0400 Subject: [PATCH] Update --- misc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc.py b/misc.py index 2bb053f..88b137f 100644 --- a/misc.py +++ b/misc.py @@ -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")