mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
remove defaults
Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
parent
f84461a20d
commit
d5d2ea314e
1 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue