mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 09:35:02 +00:00
Merge branch 'automod-start-thread-action' of https://github.com/metal0/ZeppelinBot into pr/metal0/274
This commit is contained in:
commit
39fc748982
2 changed files with 4 additions and 4 deletions
|
@ -161,7 +161,7 @@ const configPreprocessor: ConfigPreprocessorFn<AutomodPluginType> = options => {
|
||||||
if (rule["actions"]["log"] == null) {
|
if (rule["actions"]["log"] == null) {
|
||||||
rule["actions"]["log"] = true;
|
rule["actions"]["log"] = true;
|
||||||
}
|
}
|
||||||
if (rule["actions"]["clean"] === true && rule["actions"]["start_thread"]) {
|
if (rule["actions"]["clean"] && rule["actions"]["start_thread"]) {
|
||||||
throw new StrictValidationError([`Cannot have both clean and start_thread at rule '${rule.name}'`]);
|
throw new StrictValidationError([`Cannot have both clean and start_thread at rule '${rule.name}'`]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import { GuildFeature, ThreadAutoArchiveDuration } from "discord-api-types";
|
import { GuildFeature, ThreadAutoArchiveDuration } from "discord-api-types";
|
||||||
import { TextChannel } from "discord.js";
|
import { TextChannel } from "discord.js";
|
||||||
import * as t from "io-ts";
|
import * as t from "io-ts";
|
||||||
import { renderTemplate, TemplateSafeValueContainer } from "src/templateFormatter";
|
import { renderTemplate, TemplateSafeValueContainer } from "../../../templateFormatter";
|
||||||
import { ChannelTypeStrings } from "src/types";
|
import { ChannelTypeStrings } from "src/types";
|
||||||
import { convertDelayStringToMS, MINUTES, tDelayString, tNullable } from "src/utils";
|
import { convertDelayStringToMS, MINUTES, tDelayString, tNullable } from "../../../utils";
|
||||||
import { savedMessageToTemplateSafeSavedMessage, userToTemplateSafeUser } from "src/utils/templateSafeObjects";
|
import { savedMessageToTemplateSafeSavedMessage, userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||||
import { noop } from "../../../utils";
|
import { noop } from "../../../utils";
|
||||||
import { automodAction } from "../helpers";
|
import { automodAction } from "../helpers";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue