From ad4371a6baa2281abfe49e5a64ac23fb54b4e18e Mon Sep 17 00:00:00 2001 From: MAX <63972751+ltzmax@users.noreply.github.com> Date: Wed, 20 Dec 2023 12:10:44 +0100 Subject: [PATCH] command change. --- nospoiler/nospoiler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nospoiler/nospoiler.py b/nospoiler/nospoiler.py index fab61108..0ce3eef8 100644 --- a/nospoiler/nospoiler.py +++ b/nospoiler/nospoiler.py @@ -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: @@ -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.")