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

Fix antiraid level not being set properly

This commit is contained in:
Dragory 2020-01-27 22:07:46 +02:00
parent 84ed1405f0
commit 60af27c526
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -1361,8 +1361,8 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema, ICustomOverride
} }
protected async setAntiraidLevel(level: string | null, user?: User) { protected async setAntiraidLevel(level: string | null, user?: User) {
this.cachedAntiraidLevel = null; this.cachedAntiraidLevel = level;
await this.antiraidLevels.set(null); await this.antiraidLevels.set(level);
if (user) { if (user) {
this.guildLogs.log(LogType.SET_ANTIRAID_USER, { this.guildLogs.log(LogType.SET_ANTIRAID_USER, {