Fix unsetting settings
This commit is contained in:
parent
13ebc33ae1
commit
48338fc22b
1 changed files with 7 additions and 7 deletions
|
@ -140,7 +140,7 @@ class SettingsCog(Scale):
|
|||
@check(admin_or_permissions(Permissions.MANAGE_GUILD))
|
||||
async def _unset_modlog(self, ctx: InteractionContext) -> None:
|
||||
await ctx.defer()
|
||||
await self.delete_settings("modlog")
|
||||
await self.delete_settings("modlog", ctx.guild.id)
|
||||
await ctx.send("Setting `modlog` unset")
|
||||
|
||||
@unset.subcommand(
|
||||
|
@ -150,14 +150,14 @@ class SettingsCog(Scale):
|
|||
@check(admin_or_permissions(Permissions.MANAGE_GUILD))
|
||||
async def _unset_activitylog(self, ctx: InteractionContext) -> None:
|
||||
await ctx.defer()
|
||||
await self.delete_settings("activitylog")
|
||||
await self.delete_settings("activitylog", ctx.guild.id)
|
||||
await ctx.send("Setting `activitylog` unset")
|
||||
|
||||
@unset.subcommand(sub_cmd_name="massmention", sub_cmd_description="Unset massmention output")
|
||||
@check(admin_or_permissions(Permissions.MANAGE_GUILD))
|
||||
async def _unset_massmention(self, ctx: InteractionContext) -> None:
|
||||
await ctx.defer()
|
||||
await self.delete_settings("massmention")
|
||||
await self.delete_settings("massmention", ctx.guild.id)
|
||||
await ctx.send("Setting `massmention` unset")
|
||||
|
||||
@unset.subcommand(sub_cmd_name="verified", sub_cmd_description="Unset verified role")
|
||||
|
@ -167,14 +167,14 @@ class SettingsCog(Scale):
|
|||
@check(admin_or_permissions(Permissions.MANAGE_GUILD))
|
||||
async def _unset_verified(self, ctx: InteractionContext) -> None:
|
||||
await ctx.defer()
|
||||
await self.delete_settings("verified")
|
||||
await self.delete_settings("verified", ctx.guild.id)
|
||||
await ctx.send("Setting `massmention` unset")
|
||||
|
||||
@unset.subcommand(sub_cmd_name="unverified", sub_cmd_description="Unset unverified role")
|
||||
@check(admin_or_permissions(Permissions.MANAGE_GUILD))
|
||||
async def _unset_unverified(self, ctx: InteractionContext) -> None:
|
||||
await ctx.defer()
|
||||
await self.delete_settings("unverified")
|
||||
await self.delete_settings("unverified", ctx.guild.id)
|
||||
await ctx.send("Setting `unverified` unset")
|
||||
|
||||
@unset.subcommand(
|
||||
|
@ -183,14 +183,14 @@ class SettingsCog(Scale):
|
|||
@check(admin_or_permissions(Permissions.MANAGE_GUILD))
|
||||
async def _unset_invitedel(self, ctx: InteractionContext, active: bool) -> None:
|
||||
await ctx.defer()
|
||||
await self.delete_settings("noinvite")
|
||||
await self.delete_settings("noinvite", ctx.guild.id)
|
||||
await ctx.send(f"Setting `{active}` unset")
|
||||
|
||||
@unset.subcommand(sub_cmd_name="notify", sub_cmd_description="Unset admin action notifications")
|
||||
@check(admin_or_permissions(Permissions.MANAGE_GUILD))
|
||||
async def _unset_notify(self, ctx: InteractionContext) -> None:
|
||||
await ctx.defer()
|
||||
await self.delete_settings("noinvite")
|
||||
await self.delete_settings("notify", ctx.guild.id)
|
||||
await ctx.send("Setting `notify` unset")
|
||||
|
||||
@settings.subcommand(sub_cmd_name="view", sub_cmd_description="View settings")
|
||||
|
|
Loading…
Add table
Reference in a new issue