Post role buttons
post_role_buttonsUse this when the user wants a message where members pick roles with buttons or a menu (roles with moderation or admin permissions are refused). Do not use for giving a role directly; use set_member_roles. Adds the change to the pending card for this server; nothing changes on Discord until apply_card.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"guild_id": "<guild_id>",
"channel": "<channel>",
"buttons": "<buttons>"
},
"name": "post_role_buttons"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | No | Several roles, only one, a limited number, or permanent once taken. | |
| limit | No | For rule limited: the maximum number of roles. | |
| style | No | buttons (5 at most) or menu (up to 25). | |
| title | No | Message title. | |
| buttons | Yes | One button per role (existing, or created in this card). | |
| channel | Yes | The channel name. | |
| guild_id | Yes | Discord server ID, as returned by list_my_servers. | |
| description | No | Text under the title. | |
| allow_repeat | No | Post it even if the same message was already posted in this channel in the last 30 minutes. Only when the user asked for it twice. |