You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
description="Shows the current automod configuration for your server"
26
21
)
27
22
asyncdefautomod(self, ctx: ApplicationContext):
28
-
loaded_config=automod_config[str(ctx.guild.id)]
23
+
loaded_config=automod.fetch_config(ctx.guild.id)
29
24
localembed=discord.Embed(title=f"{ctx.guild.name}\'s automod configuration", descripton="Use the `/automod_set` command to change your server's automod configuration.", color=color)
ifnotctx.author.guild_permissions.administrator: returnawaitctx.respond("You cannot use this command. If you think this is a mistake, please contact your server owner/administrator.", ephemeral=True)
44
-
ifloaded_config["swear_filter"]["enabled"] ==toggle: returnawaitctx.respond(f"That automod option is already set to `{toggle}`.", ephemeral=True)
45
-
loaded_config["swear_filter"]["enabled"] =toggle
38
+
ifautomod.fetch_config(ctx.guild.id)["swear_filter"]["enabled"] ==toggle: returnawaitctx.respond(f"That automod option is already set to `{toggle}`.", ephemeral=True)
ifnotctx.author.guild_permissions.administrator: returnawaitctx.respond("You cannot use this command. If you think this is a mistake, please contact your server owner/administrator.", ephemeral=True)
58
-
ifloaded_config["swear_filter"]["keywords"]["use_default"] ==toggle: returnawaitctx.respond(f"That automod option is already set to `{toggle}`.", ephemeral=True)
ifautomod.fetch_config(ctx.guild.id)["swear_filter"]["keywords"]["use_default"] ==toggle: returnawaitctx.respond(f"That automod option is already set to `{toggle}`.", ephemeral=True)
ifnotctx.author.guild_permissions.administrator: returnawaitctx.respond("You cannot use this command. If you think this is a mistake, please contact your server owner/administrator.", ephemeral=True)
0 commit comments