mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Another fix for voice move spam false positives
This commit is contained in:
parent
7e179bb06c
commit
8585686032
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ export const SpamVoiceStateUpdateEvt = spamEvt({
|
|||
if (!member) return;
|
||||
const channel = meta.args.newState.channel;
|
||||
if (!channel) return;
|
||||
if (channel.id === meta.args.oldState?.id) return;
|
||||
if (channel.id === meta.args.oldState?.channelId) return;
|
||||
|
||||
const config = await meta.pluginData.config.getMatchingConfig({ member, channelId: channel.id });
|
||||
const maxVoiceMoves = config.max_voice_moves;
|
||||
|
|
Loading…
Add table
Reference in a new issue