mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
remove useless feature check
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
1e66f235b2
commit
ba4a2b45b8
1 changed files with 2 additions and 11 deletions
|
@ -1,10 +1,4 @@
|
||||||
import {
|
import { ChannelType, GuildTextThreadCreateOptions, ThreadAutoArchiveDuration, ThreadChannel } from "discord.js";
|
||||||
ChannelType,
|
|
||||||
GuildFeature,
|
|
||||||
GuildTextThreadCreateOptions,
|
|
||||||
ThreadAutoArchiveDuration,
|
|
||||||
ThreadChannel,
|
|
||||||
} from "discord.js";
|
|
||||||
import * as t from "io-ts";
|
import * as t from "io-ts";
|
||||||
import { TemplateSafeValueContainer, renderTemplate } from "../../../templateFormatter";
|
import { TemplateSafeValueContainer, renderTemplate } from "../../../templateFormatter";
|
||||||
import { MINUTES, convertDelayStringToMS, noop, tDelayString, tNullable } from "../../../utils";
|
import { MINUTES, convertDelayStringToMS, noop, tDelayString, tNullable } from "../../../utils";
|
||||||
|
@ -77,10 +71,7 @@ export const StartThreadAction = automodAction({
|
||||||
const threadOptions: GuildTextThreadCreateOptions<unknown> = {
|
const threadOptions: GuildTextThreadCreateOptions<unknown> = {
|
||||||
name: threadName,
|
name: threadName,
|
||||||
autoArchiveDuration: autoArchive,
|
autoArchiveDuration: autoArchive,
|
||||||
startMessage:
|
startMessage: !actionConfig.private ? threadContext.message!.id : undefined,
|
||||||
!actionConfig.private && guild.features.includes(GuildFeature.PrivateThreads)
|
|
||||||
? threadContext.message!.id
|
|
||||||
: undefined,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let thread: ThreadChannel | undefined;
|
let thread: ThreadChannel | undefined;
|
||||||
|
|
Loading…
Add table
Reference in a new issue