3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 02:25:01 +00:00

remove defaults

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
metal 2021-12-10 17:08:13 +00:00 committed by GitHub
parent f84461a20d
commit d5d2ea314e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,12 +16,7 @@ export const ChangePermsAction = automodAction({
channel: tNullable(t.string), channel: tNullable(t.string),
perms: tPartialDictionary(t.keyof(Permissions.FLAGS), tNullable(t.boolean)), perms: tPartialDictionary(t.keyof(Permissions.FLAGS), tNullable(t.boolean)),
}), }),
defaultConfig: { defaultConfig: {},
channel: "",
perms: {
SEND_MESSAGES: true,
},
},
async apply({ pluginData, contexts, actionConfig, ruleName }) { async apply({ pluginData, contexts, actionConfig, ruleName }) {
const user = contexts.find((c) => c.user)?.user; const user = contexts.find((c) => c.user)?.user;