From bfad13a40c8267478875b7c1d79b3af394a5eff9 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 15 Dec 2023 14:07:21 -0500 Subject: [PATCH] feat(moderation): added command to configure the use_discord_permissions value --- moderation/moderation.py | 7 +++++++ 1 file changed, 7 insertions(+) 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):