Migrate slow mode cooldown request to the generated UpdateChannelPartialRequest model - #6614
Conversation
PR checklist ✅All required conditions are satisfied:
🎉 Great job! This PR is ready for review. |
SDK Size Comparison 📏
|
WalkthroughCooldown updates now use ChangesCooldown request migration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
🚀 Available in v7.8.0 |



Goal
Migrate the slow-mode cooldown request body (
enableSlowMode/disableSlowMode, via the privateupdateCooldown) to the generatedUpdateChannelPartialRequestnetwork model.Part of AND-1291
Implementation
updateCooldownnow buildsUpdateChannelPartialRequest(set = mapOf("cooldown" to N));ChannelApi.updateCooldown's@Bodytype is retyped accordingly.UpdateCooldownRequest(wasinternal, so no public-API change).Testing
UpdateChannelPartialRequestAdapterTestlocks the wire shape ({"unset":[],"set":{"cooldown":N}}).spotlessApply,apiDump(no public-API change),detekt, and the full clienttestDebugUnitTestsuite pass.Summary by CodeRabbit
Bug Fixes
Tests