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,
|
ChannelType,
|
||||||
GuildFeature,
|
GuildFeature,
|
||||||
GuildTextThreadCreateOptions,
|
GuildTextThreadCreateOptions,
|
||||||
|
TextChannel,
|
||||||
ThreadAutoArchiveDuration,
|
ThreadAutoArchiveDuration,
|
||||||
ThreadChannel,
|
ThreadChannel,
|
||||||
} from "discord.js";
|
} from "discord.js";
|
||||||
|
@ -86,7 +87,7 @@ export const StartThreadAction = automodAction({
|
||||||
})
|
})
|
||||||
.catch(() => undefined);
|
.catch(() => undefined);
|
||||||
} else {
|
} else {
|
||||||
thread = await channel.threads
|
thread = await (channel as TextChannel).threads
|
||||||
.create({
|
.create({
|
||||||
...threadOptions,
|
...threadOptions,
|
||||||
type: actionConfig.private ? ChannelType.PrivateThread : ChannelType.PublicThread,
|
type: actionConfig.private ? ChannelType.PrivateThread : ChannelType.PublicThread,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue