Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cogs/dpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,15 +519,15 @@ async def mark_as_solved(self, thread: discord.Thread, user: discord.abc.User) -
reason=f'Marked as solved by {user} (ID: {user.id})',
)

@commands.command(name='solved', aliases=['is_solved'])
@commands.command(name='solved', aliases=['is_solved', 'close'])
@commands.cooldown(1, 20, commands.BucketType.channel)
@is_help_thread()
async def solved(self, ctx: GuildContext):
"""Marks a thread as solved."""

assert isinstance(ctx.channel, discord.Thread)

if can_close_threads(ctx) and ctx.invoked_with == 'solved':
if can_close_threads(ctx) and ctx.invoked_with in ('solved', 'close'):
await ctx.message.add_reaction(ctx.tick(True))
await self.mark_as_solved(ctx.channel, ctx.author)
else:
Expand Down