From d5d2ea314e820b646a946a18cd8c9f0bd8cca202 Mon Sep 17 00:00:00 2001 From: metal Date: Fri, 10 Dec 2021 17:08:13 +0000 Subject: [PATCH] remove defaults Co-authored-by: Almeida --- backend/src/plugins/Automod/actions/changePerms.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/src/plugins/Automod/actions/changePerms.ts b/backend/src/plugins/Automod/actions/changePerms.ts index 34f16105..a516a6cf 100644 --- a/backend/src/plugins/Automod/actions/changePerms.ts +++ b/backend/src/plugins/Automod/actions/changePerms.ts @@ -16,12 +16,7 @@ export const ChangePermsAction = automodAction({ channel: tNullable(t.string), perms: tPartialDictionary(t.keyof(Permissions.FLAGS), tNullable(t.boolean)), }), - defaultConfig: { - channel: "", - perms: { - SEND_MESSAGES: true, - }, - }, + defaultConfig: {}, async apply({ pluginData, contexts, actionConfig, ruleName }) { const user = contexts.find((c) => c.user)?.user;