From bd4357ce03a78029796e38a30c3ca39bbaddd238 Mon Sep 17 00:00:00 2001 From: insert Date: Fri, 20 Dec 2024 17:26:41 -0500 Subject: [PATCH] Update --- misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc.py b/misc.py index ac91367..31234eb 100644 --- a/misc.py +++ b/misc.py @@ -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"