Update
This commit is contained in:
parent
09d36dcbd3
commit
443a444a42
1 changed files with 2 additions and 10 deletions
12
misc.py
12
misc.py
|
@ -47,21 +47,13 @@ class misc(commands.Cog):
|
|||
|
||||
@nextcord.message_command(
|
||||
name="Pin Thread Message",
|
||||
integration_types=[
|
||||
nextcord.IntegrationType.guild_install,
|
||||
],
|
||||
contexts=[
|
||||
nextcord.InteractionContextType.guild,
|
||||
nextcord.InteractionContextType.private_channel,
|
||||
],
|
||||
guild_ids=[732793772697583623],
|
||||
)
|
||||
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")
|
||||
await interaction.response.send_message("Pinned", ephemeral=True)
|
||||
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