Discord: add reusable component option

This commit is contained in:
Shadow
2026-02-16 14:22:31 -06:00
parent fc60336c18
commit 05a83b9e97
6 changed files with 112 additions and 14 deletions

View File

@@ -97,6 +97,8 @@ Supported blocks:
- Action rows allow up to 5 buttons or a single select menu
- Select types: `string`, `user`, `role`, `mentionable`, `channel`
By default, components are single use. Set `components.reusable=true` to allow buttons, selects, and forms to be used multiple times until they expire.
File attachments:
- `file` blocks must point to an attachment reference (`attachment://<filename>`)
@@ -118,6 +120,7 @@ Example:
to: "channel:123456789012345678",
message: "Optional fallback text",
components: {
reusable: true,
text: "Choose a path",
blocks: [
{