Accounts
List Discord channels
List the channels and forum tags of a connected Discord server, to post into one.
GET
List Discord channels
Needs
accounts:read. See Permissions.id as accounts[].settings.channel_id on Create a post, or save it in the account’s Post defaults so posts without one go there. In a forum or media channel, send thread_name (needed to schedule or publish there) and up to 5 of its tag ids as applied_tags. A poll goes only in a text or announcement channel.
- The list holds the
text,announcement,forumandmediachannels, in Discord’s own order: those outside a category first, then each category’s, withparent_name. - A forum or media channel lists its
available_tags, andrequires_tagistruewhen every post there needs a tag. A tag withmoderated: trueis one only moderators can add on Discord: PostSyncer’s bot asks for that right, so it can be used too. - The list is the one PostSyncer keeps for the account. When it’s more than 5 minutes old, it’s read again in the background; only a server never read yet is read from Discord right away. Channel and tag ids are long numbers: keep them as strings.
Errors
Related
- Post to Discord: what a Discord post takes.
- Create a post:
channel_id,thread_nameandapplied_tagsinsettings.