Update Discord Bot Schedule
update_discord_bot_scheduleUpdate a Discord bot schedule (name, action, cron, runOnceAt, timezone, command, isActive). Bot owner only. isActive=false pauses it. A new cron or runOnceAt is local time in the schedule's own timezone (from list_discord_bot_schedules) unless you also send timezone; omitting timezone keeps the schedule's zone. runOnceAt makes it a one-time schedule (a finished one runs again at the new time); a new cron (or runOnceAt=null plus cron) makes a one-time schedule recurring again. Re-enabling a finished one-time schedule needs a new runOnceAt. The daily auto backup (isSystem) cannot be changed. Requires confirm=true. Requires an active ZapX Pass (see server instructions).
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": {
"serviceId": "<serviceId>",
"scheduleId": "<scheduleId>"
},
"name": "update_discord_bot_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cron | No | Recurring schedule: five-field cron in local time of `timezone`, e.g. "0 4 * * *" = daily 04:00. At most every 5 minutes. Leave out for a one-time schedule (`runOnceAt`). | |
| name | No | ||
| action | No | ||
| command | No | Bot console command, required for action=command. | |
| confirm | No | ||
| isActive | No | ||
| timezone | No | New IANA zone; omit to keep the schedule's zone (a pending one-time schedule keeps its local time), null resets to UTC. | |
| runOnceAt | No | One-time time "YYYY-MM-DDTHH:mm" in the schedule's zone (or the new `timezone`): makes it a one-time schedule; a finished one runs again at the new time. null makes a one-time schedule recurring again (send `cron` with it). Omit to keep. | |
| serviceId | Yes | ID of the Discord bot: the "id" field from list_account_services or list_discord_bots (e.g. "cmabc123..."). The numericId shown in the panel (e.g. "180") is accepted too. IDs of other service types do not work here. | |
| scheduleId | Yes |