diff --git a/jarvis/cogs/settings.py b/jarvis/cogs/settings.py index 0e6c25a..8131318 100644 --- a/jarvis/cogs/settings.py +++ b/jarvis/cogs/settings.py @@ -58,12 +58,33 @@ class SettingsCog(commands.Cog): ) ], ) - @admin_or_permissions(mute_members=True) + @commands.has_permissions(administrator=True) async def _modlog(self, ctx, channel: TextChannel): await ctx.defer() self.update_settings("modlog", channel.id, ctx.guild.id) await ctx.send( - f"Settings applied. New modlog channel is `{channel.name}`" + f"Settings applied. New modlog channel is {channel.mention}" + ) + + @cog_ext.cog_subcommand( + base="settings", + name="userlog", + description="Set userlog channel", + options=[ + create_option( + name="channel", + description="Userlog channel", + option_type=7, + required=True, + ) + ], + ) + @commands.has_permissions(administrator=True) + async def _modlog(self, ctx, channel: TextChannel): + await ctx.defer() + self.update_settings("userlog", channel.id, ctx.guild.id) + await ctx.send( + f"Settings applied. New userlog channel is {channel.mention}" )