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

This commit is contained in:
Seaswimmer 2023-09-07 19:50:51 -04:00
parent eef151d461
commit af01bacfa3
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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()