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"