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

Fix antiraid_level override

This commit is contained in:
Dragory 2021-05-23 17:15:15 +03:00
parent 8011885dc0
commit a8cc09c0dd

View file

@ -169,8 +169,10 @@ export const AutomodPlugin = zeppelinGuildPlugin<AutomodPluginType>()({
defaultOptions, defaultOptions,
configPreprocessor, configPreprocessor,
customOverrideMatcher(pluginData, criteria, matchParams) { customOverrideCriteriaFunctions: {
return criteria?.antiraid_level ? criteria.antiraid_level === pluginData.state.cachedAntiraidLevel : false; antiraid_level: (pluginData, matchParams, value) => {
return value ? value === pluginData.state.cachedAntiraidLevel : false;
},
}, },
// prettier-ignore // prettier-ignore