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

Merge branch 'master' of github.com:Dragory/ZeppelinBot

This commit is contained in:
Dragory 2021-08-20 20:33:05 +03:00
commit dd22745ae0
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
2 changed files with 2 additions and 0 deletions

View file

@ -30,6 +30,7 @@ export const LogsVoiceStateUpdateEvt = logsEvt({
channel: newChannel,
});
} else if (oldChannel && newChannel) {
if (oldChannel.id === newChannel.id) return;
logVoiceChannelMove(meta.pluginData, {
member,
oldChannel,

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;