wings1029
fd49e97ee5
fix(discord): inherit default_auto_archive_duration in createThreadDiscord ( #103413 )
...
* fix(discord): inherit default_auto_archive_duration in createThreadDiscord
When createThreadForBinding hardcoded autoArchiveMinutes: 60, the
parent channel's default_auto_archive_duration (configured by
operators at 1440, 4320, or 10080) was silently overridden. This is
the same pattern fixed in #103033 for sendMessageDiscord's implicit
forum thread creation.
- Move the auto_archive_duration set after the channel fetch in
createThreadDiscord so channel.default_auto_archive_duration can
serve as a fallback when autoArchiveMinutes is not provided.
- Remove the hardcoded autoArchiveMinutes: 60 from
createThreadForBinding so it inherits the channel default for
forum/media channels and omits the field for text channels
(preserving Discord's server-side default).
- Explicit autoArchiveMinutes from callers (thread-create action,
auto-thread config) still take priority via the ?? operator.
Co-Authored-By: Claude <noreply@anthropic.com >
* refactor(discord): preserve parent thread archive defaults
Co-authored-by: 陈志强0668000989 <chen.zhiqiang1@xydigit.com >
* docs(changelog): credit Discord archive default fix
Co-authored-by: 陈志强0668000989 <chen.zhiqiang1@xydigit.com >
---------
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Peter Steinberger <steipete@gmail.com >
2026-07-13 10:31:46 -07:00
..
2026-07-13 21:01:52 +08:00
2026-07-13 09:33:39 -07:00
2026-07-11 04:00:49 +01:00
2026-07-12 11:11:15 -04:00
2026-07-12 12:48:22 +01:00
2026-07-11 04:00:49 +01:00
2026-07-13 09:25:22 -06:00
2026-07-11 04:00:49 +01:00
2026-07-11 04:00:49 +01:00
2026-07-13 02:25:13 -07:00
2026-07-12 09:17:31 +01:00
2026-07-12 17:16:47 +02:00
2026-07-13 05:05:31 -07:00
2026-07-12 12:48:22 +01:00
2026-07-12 22:33:53 -07:00
2026-07-12 09:17:31 +01:00
2026-07-12 12:48:22 +01:00
2026-07-12 16:47:15 +02:00
2026-07-11 04:00:49 +01:00
2026-07-12 15:27:41 +02:00
2026-07-13 09:58:01 -07:00
2026-07-12 09:17:31 +01:00
2026-07-11 04:00:49 +01:00
2026-07-13 04:00:17 -07:00
2026-07-11 04:00:49 +01:00
2026-07-13 09:54:49 -07:00
2026-07-11 04:00:49 +01:00
2026-07-11 01:09:51 -07:00
2026-07-12 12:48:22 +01:00
2026-07-13 02:30:45 -07:00
2026-07-13 09:48:23 -07:00
2026-07-13 02:34:06 -07:00
2026-07-12 22:33:53 -07:00
2026-07-13 02:34:06 -07:00
2026-07-13 10:31:46 -07:00
2026-07-12 09:17:31 +01:00
2026-07-11 04:00:49 +01:00
2026-07-12 15:43:24 +02:00
2026-07-11 01:09:51 -07:00
2026-07-11 04:00:49 +01:00
2026-07-11 04:00:49 +01:00
2026-07-13 02:34:06 -07:00
2026-07-12 12:48:22 +01:00
2026-07-12 21:04:43 -07:00
2026-07-11 04:00:49 +01:00
2026-07-12 15:24:39 +01:00
2026-07-11 04:00:49 +01:00
2026-07-13 05:17:24 -07:00
2026-07-13 04:34:19 -07:00
2026-07-13 02:34:06 -07:00
2026-07-12 09:43:22 +01:00
2026-07-11 04:00:49 +01:00
2026-07-12 12:48:22 +01:00
2026-07-11 04:00:49 +01:00
2026-07-13 01:51:32 -07:00
2026-07-12 12:48:22 +01:00
2026-07-13 01:51:32 -07:00
2026-07-11 01:09:51 -07:00
2026-07-11 01:09:51 -07:00
2026-07-13 01:18:31 -07:00
2026-07-11 04:00:49 +01:00
2026-07-12 12:48:22 +01:00
2026-07-12 18:08:26 -07:00
2026-07-12 09:17:31 +01:00
2026-07-13 01:31:16 -07:00
2026-07-12 12:48:22 +01:00
2026-07-11 04:00:49 +01:00
2026-07-13 04:39:58 -07:00
2026-07-13 03:23:27 -07:00
2026-07-11 04:00:49 +01:00
2026-07-13 03:16:28 -07:00
2026-07-12 18:08:26 -07:00
2026-07-13 03:16:28 -07:00
2026-07-12 16:09:01 +02:00
2026-07-11 00:55:06 -07:00
2026-07-12 09:17:31 +01:00
2026-07-11 04:00:49 +01:00
2026-07-12 09:17:31 +01:00
2026-07-12 11:29:57 -04:00
2026-07-12 15:43:24 +02:00
2026-07-11 04:00:49 +01:00
2026-07-13 03:43:17 -07:00
2026-07-12 23:07:25 -07:00
2026-07-13 01:51:32 -07:00
2026-07-13 08:03:54 +08:00
2026-07-11 04:00:49 +01:00
2026-07-11 04:00:49 +01:00
2026-07-13 20:37:08 +08:00
2026-07-13 00:34:46 -07:00
2026-07-13 03:12:47 -07:00
2026-07-11 01:09:51 -07:00
2026-07-13 05:17:24 -07:00
2026-07-11 04:00:49 +01:00
2026-07-12 22:39:43 -07:00
2026-07-13 15:37:26 +03:00
2026-07-13 01:53:28 -07:00
2026-07-13 02:34:06 -07:00
2026-07-11 04:00:49 +01:00
2026-07-12 23:38:22 -07:00
2026-07-11 04:00:49 +01:00
2026-07-13 09:47:31 -07:00
2026-07-13 00:34:46 -07:00
2026-07-13 09:31:51 -07:00
2026-07-13 00:34:46 -07:00
2026-07-11 04:00:49 +01:00
2026-07-13 02:34:06 -07:00
2026-07-12 11:11:15 -04:00
2026-07-12 22:37:21 -07:00
2026-07-13 08:52:14 -07:00
2026-07-11 04:00:49 +01:00
2026-07-12 12:48:22 +01:00
2026-07-11 04:00:49 +01:00
2026-07-11 04:00:49 +01:00
2026-07-13 02:34:06 -07:00
2026-07-13 21:53:34 +08:00
2026-07-13 02:34:06 -07:00
2026-07-11 04:00:49 +01:00
2026-07-13 01:51:32 -07:00
2026-07-11 04:00:49 +01:00
2026-07-11 04:00:49 +01:00
2026-07-13 09:28:55 -07:00
2026-07-12 17:03:26 +02:00
2026-07-12 12:48:22 +01:00
2026-07-12 17:30:35 -07:00
2026-07-11 04:00:49 +01:00
2026-07-11 04:00:49 +01:00
2026-07-11 04:00:49 +01:00
2026-07-12 18:08:26 -07:00
2026-07-12 09:17:31 +01:00
2026-07-12 12:48:22 +01:00
2026-07-11 04:00:49 +01:00
2026-07-11 04:00:49 +01:00
2026-07-11 04:00:49 +01:00
2026-07-13 05:33:16 -07:00
2026-07-11 04:00:49 +01:00
2026-07-11 16:43:58 -07:00
2026-07-11 04:00:49 +01:00
2026-07-11 04:00:49 +01:00
2026-07-11 04:00:49 +01:00
2026-07-13 02:53:15 -07:00
2026-07-13 08:58:08 -07:00
2026-07-13 02:34:06 -07:00
2026-07-13 06:08:28 -07:00
2026-07-11 04:00:49 +01:00
2026-07-12 08:40:22 +08:00
2026-07-13 01:51:32 -07:00
2026-07-12 23:46:16 -07:00
2026-07-12 19:58:55 -07:00