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:
parent
84ed1405f0
commit
60af27c526
1 changed files with 2 additions and 2 deletions
|
@ -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, {
|
||||||
|
|
Loading…
Add table
Reference in a new issue