Update
This commit is contained in:
parent
d6d02d7873
commit
09d36dcbd3
1 changed files with 3 additions and 3 deletions
6
misc.py
6
misc.py
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue