Spam: max_voice_move -> max_voice_moves, add to default mod override as well
This commit is contained in:
parent
30db4d58b4
commit
207f5b3b95
1 changed files with 3 additions and 1 deletions
|
@ -79,6 +79,7 @@ export class SpamPlugin extends Plugin {
|
||||||
max_newlines: null,
|
max_newlines: null,
|
||||||
max_duplicates: null,
|
max_duplicates: null,
|
||||||
max_characters: null,
|
max_characters: null,
|
||||||
|
max_voice_moves: null,
|
||||||
},
|
},
|
||||||
|
|
||||||
// Default override to make mods immune to the spam filter
|
// Default override to make mods immune to the spam filter
|
||||||
|
@ -94,6 +95,7 @@ export class SpamPlugin extends Plugin {
|
||||||
max_newlines: null,
|
max_newlines: null,
|
||||||
max_duplicates: null,
|
max_duplicates: null,
|
||||||
max_characters: null,
|
max_characters: null,
|
||||||
|
max_voice_moves: null,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -471,7 +473,7 @@ export class SpamPlugin extends Plugin {
|
||||||
@d.event("voiceChannelJoin")
|
@d.event("voiceChannelJoin")
|
||||||
@d.event("voiceChannelSwitch")
|
@d.event("voiceChannelSwitch")
|
||||||
onVoiceChannelSwitch(member: Member, channel: Channel) {
|
onVoiceChannelSwitch(member: Member, channel: Channel) {
|
||||||
const spamConfig = this.configValueForMemberIdAndChannelId(member.id, channel.id, "max_voice_move");
|
const spamConfig = this.configValueForMemberIdAndChannelId(member.id, channel.id, "max_voice_moves");
|
||||||
if (spamConfig) {
|
if (spamConfig) {
|
||||||
this.logAndDetectOtherSpam(
|
this.logAndDetectOtherSpam(
|
||||||
RecentActionType.VoiceChannelMove,
|
RecentActionType.VoiceChannelMove,
|
||||||
|
|
Loading…
Add table
Reference in a new issue