Proper button validation, bugfix for voice move spam
This commit is contained in:
parent
1ad70ffe1a
commit
bb9b8cfe06
2 changed files with 12 additions and 1 deletions
|
@ -7,7 +7,8 @@ export const SpamVoiceStateUpdateEvt = spamEvt({
|
|||
async listener(meta) {
|
||||
const member = meta.args.newState.member;
|
||||
if (!member) return;
|
||||
const channel = meta.args.newState.channel!;
|
||||
const channel = meta.args.newState.channel;
|
||||
if (!channel) return;
|
||||
|
||||
const config = await meta.pluginData.config.getMatchingConfig({ member, channelId: channel.id });
|
||||
const maxVoiceMoves = config.max_voice_moves;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue