fix(forums): added kwarg to resolved command so it detects multi-word strings without ""
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
eef151d461
commit
af01bacfa3
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class Forums(commands.Cog):
|
||||||
)
|
)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def resolved(self, ctx: commands.Context, reason: str = None):
|
async def resolved(self, ctx: commands.Context, *, reason: str = None):
|
||||||
"""Marks a thread as resolved."""
|
"""Marks a thread as resolved."""
|
||||||
if isinstance(ctx.channel, discord.Thread) and ctx.channel.parent_id == await self.config.guild(ctx.guild).forum_channel():
|
if isinstance(ctx.channel, discord.Thread) and ctx.channel.parent_id == await self.config.guild(ctx.guild).forum_channel():
|
||||||
request_role_ids = await self.config.guild(ctx.guild).request_roles()
|
request_role_ids = await self.config.guild(ctx.guild).request_roles()
|
||||||
|
|
Loading…
Reference in a new issue