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

Same fix for Spam plugin

This commit is contained in:
Dark 2021-08-20 19:05:59 +02:00
parent 8403c49342
commit d9e5c31d3a

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;