fix(forums): interaction.channel.get_tag --> interaction.channel.parent.get_tag
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
parent
5cb06247ff
commit
3424841a51
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class Forums(commands.Cog):
|
|||
else:
|
||||
response_reason = f"Thread closed by {interaction.user.mention}"
|
||||
reason = f"Thread closed by {interaction.user.name} ({interaction.user.id})"
|
||||
await interaction.channel.edit(locked=True, archived=True, applied_tags=interaction.channel.applied_tags + [interaction.channel.get_tag(await self.config.guild(interaction.guild).forum_tag())], reason=reason)
|
||||
await interaction.channel.edit(locked=True, archived=True, applied_tags=interaction.channel.applied_tags + [interaction.channel.parent.get_tag(await self.config.guild(interaction.guild).forum_tag())], reason=reason)
|
||||
await self.msg.edit(content=response_reason, view=None)
|
||||
await self.ctx.message.add_reaction("✅")
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue