Fix automod warns, kicks, and bans not using default contact methods
This commit is contained in:
parent
2d749730a6
commit
138bc05402
3 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ export const BanAction = automodAction({
|
||||||
|
|
||||||
async apply({ pluginData, contexts, actionConfig, matchResult }) {
|
async apply({ pluginData, contexts, actionConfig, matchResult }) {
|
||||||
const reason = actionConfig.reason || "Kicked automatically";
|
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 deleteMessageDays = actionConfig.deleteMessageDays || undefined;
|
||||||
|
|
||||||
const caseArgs = {
|
const caseArgs = {
|
||||||
|
|
|
@ -18,7 +18,7 @@ export const KickAction = automodAction({
|
||||||
|
|
||||||
async apply({ pluginData, contexts, actionConfig, matchResult }) {
|
async apply({ pluginData, contexts, actionConfig, matchResult }) {
|
||||||
const reason = actionConfig.reason || "Kicked automatically";
|
const reason = actionConfig.reason || "Kicked automatically";
|
||||||
const contactMethods = resolveActionContactMethods(pluginData, actionConfig);
|
const contactMethods = actionConfig.notify ? resolveActionContactMethods(pluginData, actionConfig) : undefined;
|
||||||
|
|
||||||
const caseArgs = {
|
const caseArgs = {
|
||||||
modId: pluginData.client.user.id,
|
modId: pluginData.client.user.id,
|
||||||
|
|
|
@ -18,7 +18,7 @@ export const WarnAction = automodAction({
|
||||||
|
|
||||||
async apply({ pluginData, contexts, actionConfig, matchResult }) {
|
async apply({ pluginData, contexts, actionConfig, matchResult }) {
|
||||||
const reason = actionConfig.reason || "Warned automatically";
|
const reason = actionConfig.reason || "Warned automatically";
|
||||||
const contactMethods = resolveActionContactMethods(pluginData, actionConfig);
|
const contactMethods = actionConfig.notify ? resolveActionContactMethods(pluginData, actionConfig) : undefined;
|
||||||
|
|
||||||
const caseArgs = {
|
const caseArgs = {
|
||||||
modId: pluginData.client.user.id,
|
modId: pluginData.client.user.id,
|
||||||
|
|
Loading…
Add table
Reference in a new issue