mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 15:00:00 +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) {
|
for (const threadContext of threads) {
|
||||||
const channel = pluginData.guild.channels.cache.get(threadContext.message!.channel_id);
|
const channel = pluginData.guild.channels.cache.get(threadContext.message!.channel_id);
|
||||||
if (
|
if (!channel || !("threads" in channel) || channel.isThreadOnly()) continue;
|
||||||
!channel ||
|
|
||||||
!("threads" in channel) ||
|
|
||||||
channel.type === ChannelType.GuildForum ||
|
|
||||||
channel.type === ChannelType.GuildMedia
|
|
||||||
)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
const renderThreadName = async (str: string) =>
|
const renderThreadName = async (str: string) =>
|
||||||
renderTemplate(
|
renderTemplate(
|
||||||
|
|
Loading…
Add table
Reference in a new issue