From ea40d7eebe9d478dc8f87f9812f5422d8c9d2eb6 Mon Sep 17 00:00:00 2001 From: iamshoXy Date: Tue, 12 Dec 2023 17:50:33 +0100 Subject: [PATCH] Update --- backend/src/plugins/Automod/actions/startThread.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/plugins/Automod/actions/startThread.ts b/backend/src/plugins/Automod/actions/startThread.ts index 25b840e1..ccbe79a5 100644 --- a/backend/src/plugins/Automod/actions/startThread.ts +++ b/backend/src/plugins/Automod/actions/startThread.ts @@ -2,6 +2,7 @@ import { ChannelType, GuildFeature, GuildTextThreadCreateOptions, + TextChannel, ThreadAutoArchiveDuration, ThreadChannel, } from "discord.js"; @@ -86,7 +87,7 @@ export const StartThreadAction = automodAction({ }) .catch(() => undefined); } else { - thread = await channel.threads + thread = await (channel as TextChannel).threads .create({ ...threadOptions, type: actionConfig.private ? ChannelType.PrivateThread : ChannelType.PublicThread,