Skip to content

Commit

Permalink
[ThreadOpener] fix name and alias
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Oct 13, 2023
1 parent 449e650 commit 0322f31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions threadopener/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async def _channels(

await ctx.send(
f"{'added' if add_or_remove.lower() == 'add' else 'removed'} "
"{channels} {'channel' if channels == 1 else 'channels'}."
f"{channels} {'channel' if channels == 1 else 'channels'}."
)

@_thread_opener.command(name="archive") # type: ignore
Expand All @@ -101,7 +101,7 @@ async def _archive(self, ctx: commands.Context, amount: Literal[0, 60, 1440, 432
await self.config.guild(ctx.guild).auto_archive_duration.set(amount) # type: ignore
await ctx.send(f"Auto archive duration is now {amount}.")

@_thread_opener.command() # type: ignore
@_thread_opener.command(name="slowmode") # type: ignore
async def _slowmode(self, ctx: commands.Context, amount: commands.Range[int, 0, 21600]):
"""
Change the slowmode of threads.
Expand All @@ -114,7 +114,7 @@ async def _slowmode(self, ctx: commands.Context, amount: commands.Range[int, 0,
await self.config.guild(ctx.guild).slowmode_delay.set(amount) # type: ignore
await ctx.send(f"Slowmode is now {amount}.")

@_thread_opener.command() # type: ignore
@_thread_opener.command(name="showsettings", aliases=["ss", "show"]) # type: ignore
async def _show_settings(self, ctx: commands.Context):
"""Show ThreadOpener settings."""
data = await self.config.guild(ctx.guild).all() # type: ignore
Expand Down

0 comments on commit 0322f31

Please sign in to comment.