This commit is contained in:
insert 2024-12-20 17:31:16 -05:00
parent bd4357ce03
commit 9e8a12f360
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -64,15 +64,15 @@ class misc(commands.Cog):
await interaction.response.send_message("You don't have permission in this context", ephemeral=True)
@nextcord.slash_command(
name="threadsummery",
name="threadsummary",
description="Generate a list of created threads with the owner",
default_member_permissions=nextcord.Permissions(manage_messages=True),
)
async def threadsummery(self, interaction: nextcord.Interaction):
async def threadsummary(self, interaction: nextcord.Interaction):
if interaction.channel.type != nextcord.ChannelType.text:
await interaction.response.send_message("This is not a text channel", ephemeral=True)
return
message = ""
message = f"Active threads in {interaction.channel.jump_url}\n"
for t in interaction.channel.threads:
if t.archived:
continue