Discord: posztolási szabályok és beállítások
Mit fogad el a Discord csatorna a Postyban: média, korlátok, kötelező mezők, és a settings objektum mezői az API-hoz.
Basics
discordPost types
The same channel accepts more than one kind of post, and each kind has different requirements. The table shows what you need for each.
| Type | Media | Notes |
|---|---|---|
| Message | optional | The target server channel is required, and it expects an ID. |
Rules
- The destination server channel is required, and it expects an ID. You fetch the list of channels with the channel's tool call.
Settings fields
These fields go into the post's settings object, alongside the __type field. In the UI, you fill in the same ones in the channel's settings section.
| Field | Type | Required | What it does |
|---|---|---|---|
| channel | string (id) | yes | The destination server channel ID. |
Examples
Each example is one item in the POST /public/v1/posts request's posts array. The envelope around it is always this:
{
"type": "schedule",
"date": "2026-09-15T09:00:00.000Z",
"shortLink": false,
"posts": [ /* az alábbi elem */ ]
}Message to a server channel
The channel ID is returned by the channel tool call.
{
"integration": { "id": "<discord-csatorna>" },
"value": [{ "content": "<p>Elindult az új verzió.</p>", "image": [] }],
"settings": { "__type": "discord", "channel": "<szervercsatorna-azonosito>" }
}The channel ID comes from the channel list, and the path values for images and videos from media upload. The exact schema for the connected account comes from the settings schema endpoint. From the command line, the same thing is the --settings flag. See the CLI examples.