Skip to content

Commit

Permalink
command change.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmax committed Dec 20, 2023
1 parent a961f54 commit ad4371a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nospoiler/nospoiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ async def logchannel(
await self.config.guild(ctx.guild).log_channel.set(channel.id)
await ctx.send(f"Log channel has been set to {channel.mention}.")

@nospoiler.command()
async def warn(self, ctx: commands.Context) -> None:
@nospoiler.command(aliases=["warnmsg"])
async def warnmessage(self, ctx: commands.Context) -> None:
"""Toggle warning message when a user tries to use spoiler."""
spoiler_warn = await self.config.guild(ctx.guild).spoiler_warn()
if spoiler_warn:
Expand All @@ -334,7 +334,7 @@ async def warn(self, ctx: commands.Context) -> None:

@nospoiler.command()
@app_commands.describe(message="The spoiler warning message.")
async def warnmessage(self, ctx: commands.Context, *, message: str) -> None:
async def message(self, ctx: commands.Context, *, message: str) -> None:
"""Set the spoiler warning message."""
if len(message) > 1024 or len(message) < 1:
return await ctx.send("Message must be between 1 and 1024 characters.")
Expand Down

0 comments on commit ad4371a

Please sign in to comment.