From 9c437a9a984767c1e2d7059b56de4a8f38d60a77 Mon Sep 17 00:00:00 2001 From: almeidx Date: Sat, 14 Aug 2021 16:26:42 +0100 Subject: [PATCH] default include_moves to false --- backend/src/plugins/Automod/triggers/joinVoiceChannel.ts | 4 +++- backend/src/plugins/Automod/triggers/leaveVoiceChannel.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/src/plugins/Automod/triggers/joinVoiceChannel.ts b/backend/src/plugins/Automod/triggers/joinVoiceChannel.ts index f594dd3d..6e310510 100644 --- a/backend/src/plugins/Automod/triggers/joinVoiceChannel.ts +++ b/backend/src/plugins/Automod/triggers/joinVoiceChannel.ts @@ -12,7 +12,9 @@ export const JoinVoiceChannelTrigger = automodTrigger()( include_moves: t.boolean, }), - defaultConfig: {}, + defaultConfig: { + include_moves: false, + }, async match({ triggerConfig, context }) { const matchedChannelId = context.voiceChannel?.joined?.id; diff --git a/backend/src/plugins/Automod/triggers/leaveVoiceChannel.ts b/backend/src/plugins/Automod/triggers/leaveVoiceChannel.ts index 2e83e423..309240ca 100644 --- a/backend/src/plugins/Automod/triggers/leaveVoiceChannel.ts +++ b/backend/src/plugins/Automod/triggers/leaveVoiceChannel.ts @@ -12,7 +12,9 @@ export const LeaveVoiceChannelTrigger = automodTrigger( include_moves: t.boolean, }), - defaultConfig: {}, + defaultConfig: { + include_moves: false, + }, async match({ triggerConfig, context }) { const matchedChannelId = context.voiceChannel?.left?.id;