3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +00:00

Another fix for voice move spam false positives

This commit is contained in:
Dragory 2021-08-20 21:21:41 +03:00
parent c3bacdb8b7
commit 924747422c

View file

@ -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;