Another fix for voice move spam false positives

This commit is contained in:
Dragory 2021-08-20 21:21:41 +03:00
parent 7e179bb06c
commit 8585686032
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

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;