3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Same fix for Spam plugin

This commit is contained in:
Dark 2021-08-20 19:05:59 +02:00
parent d190957c7f
commit a72dc89293
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8

View file

@ -9,6 +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;
const config = await meta.pluginData.config.getMatchingConfig({ member, channelId: channel.id });
const maxVoiceMoves = config.max_voice_moves;