From f519e205e8055e4836e6cf182438335a3ef83694 Mon Sep 17 00:00:00 2001 From: Iusedmy1stnamelol <62726214+Iusedmy1stnamelol@users.noreply.github.com> Date: Thu, 29 Jun 2023 16:47:01 -0400 Subject: [PATCH] fixed his mistake --- cogs/moderation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/moderation.py b/cogs/moderation.py index 4d0c13a..266d873 100644 --- a/cogs/moderation.py +++ b/cogs/moderation.py @@ -812,7 +812,7 @@ async def welcomer(self, ctx: commands.Context[CodingBot]) -> None: await ctx.send_help("welcomer") @welcomer.command(name="enable") - @commands.has_permissions(manage_server=True) + @commands.has_permissions(manage_guild=True) async def welcomer_enable( self, ctx: commands.Context[CodingBot], help="Enable welcomer" ) -> None: @@ -823,7 +823,7 @@ async def welcomer_enable( await self.bot.reply(ctx, "Welcomer is already enabled.") @welcomer.command(name="disable", help="Disable welcomer") - @commands.has_permissions(manage_server=True) + @commands.has_permissions(manage_guild=True) async def welcomer_disable(self, ctx: commands.Context[CodingBot]) -> None: if self.bot.welcomer_enabled: self.bot.welcomer_enabled = False @@ -832,7 +832,7 @@ async def welcomer_disable(self, ctx: commands.Context[CodingBot]) -> None: await self.bot.reply(ctx, "Welcomer is already disabled.") @welcomer.command(name="redirect", help="Set welcomer channel") - @commands.has_permissions(manage_server=True) + @commands.has_permissions(manage_guild=True) async def welcomer_redirect( self, ctx: commands.Context[CodingBot], channel: Optional[discord.TextChannel] ) -> None: