3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 07:05:03 +00:00
This commit is contained in:
iamshoXy 2023-12-12 17:50:33 +01:00
parent e53fffb5e9
commit ea40d7eebe

View file

@ -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,