This commit is contained in:
insert 2024-12-20 17:26:41 -05:00
parent 48002fc453
commit bd4357ce03
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -69,11 +69,11 @@ class misc(commands.Cog):
default_member_permissions=nextcord.Permissions(manage_messages=True),
)
async def threadsummery(self, interaction: nextcord.Interaction):
if interaction.message.channel.type != nextcord.ChannelType.text:
if interaction.channel.type != nextcord.ChannelType.text:
await interaction.response.send_message("This is not a text channel", ephemeral=True)
return
message = ""
for t in interaction.message.channel.threads:
for t in interaction.channel.threads:
if t.archived:
continue
message = message + f"<@{t.owner_id}>: {t.jump_url}\n"