Fix automod warns, kicks, and bans not using default contact methods

This commit is contained in:
Dragory 2020-12-03 16:55:53 +02:00
parent 2d749730a6
commit 138bc05402
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ export const BanAction = automodAction({
async apply({ pluginData, contexts, actionConfig, matchResult }) {
const reason = actionConfig.reason || "Kicked automatically";
const contactMethods = resolveActionContactMethods(pluginData, actionConfig);
const contactMethods = actionConfig.notify ? resolveActionContactMethods(pluginData, actionConfig) : undefined;
const deleteMessageDays = actionConfig.deleteMessageDays || undefined;
const caseArgs = {

View file

@ -18,7 +18,7 @@ export const KickAction = automodAction({
async apply({ pluginData, contexts, actionConfig, matchResult }) {
const reason = actionConfig.reason || "Kicked automatically";
const contactMethods = resolveActionContactMethods(pluginData, actionConfig);
const contactMethods = actionConfig.notify ? resolveActionContactMethods(pluginData, actionConfig) : undefined;
const caseArgs = {
modId: pluginData.client.user.id,

View file

@ -18,7 +18,7 @@ export const WarnAction = automodAction({
async apply({ pluginData, contexts, actionConfig, matchResult }) {
const reason = actionConfig.reason || "Warned automatically";
const contactMethods = resolveActionContactMethods(pluginData, actionConfig);
const contactMethods = actionConfig.notify ? resolveActionContactMethods(pluginData, actionConfig) : undefined;
const caseArgs = {
modId: pluginData.client.user.id,