summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2026-02-03 21:05:32 -0600
committerMathMan05 <mathmanrm@gmail.com>2026-02-03 21:05:32 -0600
commit323ed548ef3c397fa56ddfd6887aaf942557599c (patch)
tree2265c0c9858068479b8f669bfd2670fc7025bfd9 /src/api
parentstupid migration (diff)
downloadserver-ts-323ed548ef3c397fa56ddfd6887aaf942557599c.tar.xz
more thread improvements
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/channels/#channel_id/threads.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/channels/#channel_id/threads.ts b/src/api/routes/channels/#channel_id/threads.ts

index 79392fe6..9c1a1d0b 100644 --- a/src/api/routes/channels/#channel_id/threads.ts +++ b/src/api/routes/channels/#channel_id/threads.ts
@@ -68,7 +68,7 @@ router.post( name: body.name, guild_id: channel.guild_id, rate_limit_per_user: body.rate_limit_per_user, - type: body.type, + type: body.type || (channel.threadOnly() ? ChannelType.GUILD_PUBLIC_THREAD : ChannelType.GUILD_PRIVATE_THREAD), recipients: [], thread_metadata: { archived: false,