V2 message layout
Typed modal definition
Open the modal
What improved recently
- One
Button helper works in both V1 rows and V2 accessories.
Section.text(...).accessory(...) avoids positional accessory arguments.
modal(...).add(...).execute(...) keeps ctx.fields inferred.
- Upload fields surface resolved files through
ctx.attachments[fieldId].
Current limitation
Components V2 are much better than before, but the layout DSL is still more structural than ideal. The framework is moving toward fewer raw payload shapes, not zero internal structure everywhere yet.Last modified on June 13, 2026