Merge branch 'master' of github.com:Dragory/ZeppelinBot
This commit is contained in:
commit
dd22745ae0
2 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue