3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-16 22:21: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.remove_roles_on_mute,
spamConfig.restore_roles_on_mute, spamConfig.restore_roles_on_unmute,
); );
} catch (e) { } catch (e) {
if (e instanceof RecoverablePluginError && e.code === ERRORS.NO_MUTE_ROLE_IN_CONFIG) { if (e instanceof RecoverablePluginError && e.code === ERRORS.NO_MUTE_ROLE_IN_CONFIG) {