mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
better startThread if checks (almeida is happy)
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
89d6e8aeec
commit
e0637a206f
1 changed files with 1 additions and 7 deletions
|
@ -50,13 +50,7 @@ export const StartThreadAction = automodAction({
|
|||
|
||||
for (const threadContext of threads) {
|
||||
const channel = pluginData.guild.channels.cache.get(threadContext.message!.channel_id);
|
||||
if (
|
||||
!channel ||
|
||||
!("threads" in channel) ||
|
||||
channel.type === ChannelType.GuildForum ||
|
||||
channel.type === ChannelType.GuildMedia
|
||||
)
|
||||
continue;
|
||||
if (!channel || !("threads" in channel) || channel.isThreadOnly()) continue;
|
||||
|
||||
const renderThreadName = async (str: string) =>
|
||||
renderTemplate(
|
||||
|
|
Loading…
Add table
Reference in a new issue