¿Qué hace discord?
Usa la herramienta message con channel: "discord". No existe una herramienta separada llamada Discord.
Reglas
- Respeta las puertas de acceso
channels.discord.actions.*. - Prefiere indicar explícitamente
guildId,channelId,messageId,userId. - Multi-cuenta: pasa
accountIdcuando sea necesario. - Destinos de envío:
to: "channel:<id>"oto: "user:<id>". - Menciona usuarios como
<@USER_ID>. - Evita usar tablas Markdown en los mensajes de salida de Discord.
- Prefiere componentes v2 para interfaces enriquecidas; no mezcles
componentsv2 conembedsheredados.
Acciones comunes
Enviar:
{ "action": "send", "channel": "discord", "to": "channel:123", "message": "hola", "silent": true }
Enviar medio:
{
"action": "send",
"channel": "discord",
"to": "channel:123",
"message": "ver adjunto",
"media": "file:///tmp/example.png"
}
Componentes v2:
{
"action": "send",
"channel": "discord",
"to": "channel:123",
"message": "Estado",
"components": "[Componentes Carbon v2]"
}
Reaccionar:
{ "action": "react", "channel": "discord", "channelId": "123", "messageId": "456", "emoji": "👍" }
Leer:
{ "action": "read", "channel": "discord", "to": "channel:123", "limit": 20 }
Editar/Eliminar:
{
"action": "edit",
"channel": "discord",
"channelId": "123",
"messageId": "456",
"message": "error tipográfico corregido"
}
{ "action": "delete", "channel": "discord", "channelId": "123", "messageId": "456" }
Encuesta:
{
"action": "poll",
"channel": "discord",
"to": "channel:123",
"pollQuestion": "¿Almuerzo?",
"pollOption": ["Pizza", "Sushi"],
"pollDurationHours": 24
}
Fijar:
{ "action": "pin", "channel": "discord", "channelId": "123", "messageId": "456" }
Hilo:
{
"action": "thread-create",
"channel": "discord",
"channelId": "123",
"messageId": "456",
"threadName": "triage de errores"
}
Buscar:
{
"action": "search",
"channel": "discord",
"guildId": "999",
"query": "notas de lanzamiento",
"channelIds": ["123"],
"limit": 10
}
Presencia, a menudo restringida:
{
"action": "set-presence",
"channel": "discord",
"activityType": "playing",
"activityName": "OpenClaw",
"status": "online"
}