mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-21 16:41:56 +00:00
Discord: add reusable component option
This commit is contained in:
@@ -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: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user