diff --git a/moderation/moderation.py b/moderation/moderation.py index 4413066..f9ef163 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -1526,6 +1526,13 @@ class Moderation(commands.Cog): await self.config.guild(ctx.guild).dm_users.set(not await self.config.guild(ctx.guild).dm_users()) await ctx.send(f"DM users setting set to {await self.config.guild(ctx.guild).dm_users()}") + @moderationset.command(name="permissions") + @checks.admin() + async def moderationset_permissions(self, ctx: commands.Context): + """Toggle whether the bot will check for discord permissions.""" + await self.config.guild(ctx.guild).use_discord_permissions.set(not await self.config.guild(ctx.guild).use_discord_permissions()) + await ctx.send(f"DM users setting set to {await self.config.guild(ctx.guild).use_discord_permissions()}") + @moderationset.command(name="logchannel") @checks.admin() async def moderationset_logchannel(self, ctx: commands.Context, channel: discord.TextChannel = None):