用 channel-edit 管理 Discord 线程归档/锁定(PR #5542)
解决“机器人能改频道名但不能归档/锁定线程”的场景:在 channel-edit 补齐 `archived/locked/autoArchiveDuration` 线程参数。
GITHUBDiscovered 2026-02-13Author stumct
Prerequisites
- Discord bot has ManageThreads permission in target guild.
- Your runtime includes PR #5542 and supports channel-edit action path.
Steps
- Upgrade to a build containing PR #5542 and restart gateway.
- Pick a test thread and run channel-edit with `archived=true` first, then `locked=true`.
- Set `autoArchiveDuration` to a supported value (for example 60/1440) and observe thread policy update.
- Run a regression edit on a normal channel field (e.g., topic/name) to confirm no collateral breakage.
- Add this path into moderation runbook for stale-thread cleanup.
Commands
openclaw gateway statusopenclaw gateway restartopenclaw helpVerify
Thread archive/lock changes apply successfully via channel-edit, and regular channel edits remain functional.
Caveats
- Unsupported auto-archive durations may fail depending on Discord tier/settings.
- If thread permissions are inherited/restricted, bot updates may still be rejected(需验证)。
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗