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

Update logAndDetectMessageSpam.ts

This commit is contained in:
Shoaib Sajid 2021-05-27 16:51:28 +05:00 committed by GitHub
parent 32cf27884a
commit c75312329b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,7 @@ export async function logAndDetectMessageSpam(
},
},
spamConfig.remove_roles_on_mute,
spamConfig.restore_roles_on_mute,
spamConfig.restore_roles_on_unmute,
);
} catch (e) {
if (e instanceof RecoverablePluginError && e.code === ERRORS.NO_MUTE_ROLE_IN_CONFIG) {