Skip to content

Update resolved channel fields#7957

Open
Sacul0457 wants to merge 9 commits into
discord:mainfrom
Sacul0457:Update-fields-in-resolved-channel-objects
Open

Update resolved channel fields#7957
Sacul0457 wants to merge 9 commits into
discord:mainfrom
Sacul0457:Update-fields-in-resolved-channel-objects

Conversation

@Sacul0457
Copy link
Copy Markdown
Contributor

@Sacul0457 Sacul0457 commented Nov 8, 2025

This PR updates what fields a resolved channel object has, or in this case what fields that are always missing.
I added the '(always)' because certain channel types do not have a field that other channel types have, but that doesn't mean it's always missing.
Same as #7935 but with the new docs so its easier for staff

This PR also updates that Announcement channel types have a rate_limit_per_user and default_thread_rate_limit_per_user field.

ForumChannel

{
  "type": 15,
  "topic": "..."
  "theme_color": null,
  "template": "",
  "rate_limit_per_user": 10800,
  "position": 18,
  "permissions": "2258386414333638",
  "parent_id": "1141177805753815180",
  "nsfw": false,
  "name": "\u2753\uff5csupport-thread",
  "last_message_id": "1435907872524468255",
  "id": "1141179304269598751",
  "icon_emoji": {
    "name": "\ud83e\uddf5",
    "id": null
  },
  "guild_id": "820745488231301210",
  "flags": 16,
  "default_thread_rate_limit_per_user": 5,
  "default_tag_setting": "match_some",
  "default_sort_order": 0,
  "default_reaction_emoji": null,
  "default_forum_layout": 1,
  "available_tags": [
    {
      "name": "Resolved",
      "moderated": true,
      "id": "1144008960966402149",
      "emoji_name": "\u2705",
      "emoji_id": null,
      "color": null
    },
    {
      "name": "Waiting for Update",
      "moderated": true,
      "id": "1284733312501420145",
      "emoji_name": "\ud83d\udd70\ufe0f",
      "emoji_id": null,
      "color": null
    }
  ]
}

TextChannel

{
  "type": 0,
  "topic": null,
  "theme_color": null,
  "rate_limit_per_user": 0,
  "position": 16,
  "permissions": "9007199254740991",
  "parent_id": null,
  "nsfw": false,
  "name": "idk",
  "last_message_id": null,
  "id": "1435954722136657993",
  "icon_emoji": null,
  "guild_id": "1294290832219963563",
  "flags": 0,
  "default_thread_rate_limit_per_user": 40,
  "default_auto_archive_duration": 60
}

VoiceChannel

{
  "user_limit": 2,
  "type": 2,
  "rtc_region": null,
  "rate_limit_per_user": 0,
  "position": 4,
  "permissions": "9007199254740991",
  "parent_id": "1395762400413745254",
  "nsfw": false,
  "name": "\ud83e\udec2\uff5cDuo",
  "last_message_id": "1401965728390844466",
  "id": "1395772822336573441",
  "guild_id": "1368569405117825095",
  "flags": 0,
  "bitrate": 64000
}

ForumChannel Thread

{
  "type": 11,
  "total_message_sent": 43,
  "thread_metadata": {
    "locked": false,
    "create_timestamp": "2025-11-03T15:17:13.863000+00:00",
    "auto_archive_duration": 4320,
    "archived": false,
    "archive_timestamp": "2025-11-03T15:17:13.863000+00:00"
  },
  "rate_limit_per_user": 5,
  "permissions": "2258386414333638",
  "parent_id": "1141179304269598751",
  "owner_id": "767619541457960980",
  "name": "...",
  "message_count": 41,
  "member_ids_preview": [
    "651551210125524998",
    "802167689011134474",
    "767619541457960980",
    "218427603944472577",
    "1274221442036400137"
  ],
  "member_count": 7,
  "last_pin_timestamp": "2025-11-03T15:17:14.446000+00:00",
  "last_message_id": "1435657005493911692",
  "id": "1434924388662378696",
  "guild_id": "820745488231301210",
  "flags": 0,
  "applied_tags": [
    "1141179662337323008"
  ]
}

colinloretz and others added 8 commits November 7, 2025 09:17
* Mintlify migration

* remove checklinks

* Remove old changelog format

* Added Next Gen Docs
Fix the double header and weird nav title
* Add bot token unmerge endpoint documentation

Document the new /provisional-accounts/unmerge/bot endpoint that allows unmerging provisional accounts using just the bot token and external_user_id, without requiring an external auth token. This ensures identities can always be removed even if the external auth token is no longer accessible.

* Review edit

Add "Tip" for being able to recover an account that's lost its auth
token due to data loss or error.

---------

Co-authored-by: Mark Mandel <mark.mandel@discordapp.com>
@Sacul0457 Sacul0457 requested a review from a team as a code owner November 8, 2025 03:42
@Sacul0457 Sacul0457 requested review from abe-discord and removed request for a team November 8, 2025 03:42
@vakiliner
Copy link
Copy Markdown
Contributor

Why close a pull request when you can apply the changes right there?

@Sacul0457
Copy link
Copy Markdown
Contributor Author

Right where?

@vakiliner
Copy link
Copy Markdown
Contributor

Right where?

In a pull request that is now closed

@Sacul0457
Copy link
Copy Markdown
Contributor Author

Just didn't think of doing so at that moment ig idk

@colinloretz colinloretz changed the base branch from main to next-docs November 21, 2025 22:45
@colinloretz colinloretz changed the base branch from next-docs to main March 17, 2026 15:15
@colinloretz colinloretz self-assigned this Mar 17, 2026
@markmandel markmandel requested a review from colinloretz May 12, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants