mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 07:05:03 +00:00
Update
This commit is contained in:
parent
e53fffb5e9
commit
ea40d7eebe
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue