Update
This commit is contained in:
parent
48002fc453
commit
bd4357ce03
1 changed files with 2 additions and 2 deletions
4
misc.py
4
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"
|
||||
|
|
Loading…
Reference in a new issue