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) {
this.cachedAntiraidLevel = null;
await this.antiraidLevels.set(null);
this.cachedAntiraidLevel = level;
await this.antiraidLevels.set(level);
if (user) {
this.guildLogs.log(LogType.SET_ANTIRAID_USER, {