3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Fix antiraid_level override

This commit is contained in:
Dragory 2021-05-23 17:15:15 +03:00
parent 72637fe1b3
commit 8ab6538744
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

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