misc(forums): made clicking yes delete the original message as well
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
af01bacfa3
commit
563c94ff5c
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class Forums(commands.Cog):
|
||||||
response_reason = f"Thread closed by {interaction.user.mention}"
|
response_reason = f"Thread closed by {interaction.user.mention}"
|
||||||
reason = f"Thread closed by {interaction.user.name} ({interaction.user.id})"
|
reason = f"Thread closed by {interaction.user.name} ({interaction.user.id})"
|
||||||
await self.msg.edit(content=response_reason, view=None)
|
await self.msg.edit(content=response_reason, view=None)
|
||||||
await self.ctx.message.add_reaction("✅")
|
await self.ctx.message.delete()
|
||||||
tag = interaction.channel.parent.get_tag(await self.config.guild(interaction.guild).forum_tag())
|
tag = interaction.channel.parent.get_tag(await self.config.guild(interaction.guild).forum_tag())
|
||||||
if tag in interaction.channel.applied_tags:
|
if tag in interaction.channel.applied_tags:
|
||||||
await interaction.channel.edit(locked=True, archived=True, reason=reason)
|
await interaction.channel.edit(locked=True, archived=True, reason=reason)
|
||||||
|
|
Loading…
Reference in a new issue