attacher_fonction_bouton_embed
Attach custom JavaScript functions to existing Discord embed buttons to execute code when users interact with them, enabling interactive Discord bot features.
Instructions
Attache une fonction personnalisée à un bouton d'embed existant
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": {
"embedId": "<embedId>",
"buttonLabel": "<buttonLabel>",
"functionCode": "<functionCode>"
},
"name": "attacher_fonction_bouton_embed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| embedId | Yes | ID de l'embed (retourné par creer_embed) | |
| buttonLabel | Yes | Label du bouton cible | |
| functionCode | Yes | Code JavaScript à exécuter | |
| functionName | No | Nom de la fonction |