feat(moderation): added command to configure the use_discord_permissions value
This commit is contained in:
parent
16bd2f70de
commit
bfad13a40c
1 changed files with 7 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue