#discord-api-types

1 messages ยท Page 5 of 1

sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.10
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.11
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: refactor/stable-webhook-deauthorise
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: docs/ae-warnings
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/add-approximate-user-authorization-count
#
[discordjs/discord-api-types] New branch created: feat/add-attachment-id
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/nameplates
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.12
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.13
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/role-gradient-colors
sudden cypressBOT
sudden cypressBOT
#

Please describe the changes this PR makes and why it should be merged:

For whatever reasons (tell me if you know) the removal of the explicit /indexยด caused api-extractor` to error with

Error: Internal Error: Cannot assign isExternal=true for the symbol APIEmoji because it was previously registered with isExternal=false

If applicable, please reference Discord API Docs PRs or commits that influenced this PR:

sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/add-primary-guild
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.14
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/add-unusual-dm-activity-until
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/guest-invites
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: fix/correct-guild-tag-badge-route
#

Issue description

The RESTPatchAPIWebhookWithTokenMessageJSONBody type does not pick "flags", but flags seem to be required to avoid a 400 on component payloads.

This is just using the types for direct REST requests. I can work around the TS error on an unexpected property, but it's a mild nuisance.

Code sample

In the REST interaction response exchange involving:

POST .../interacti...
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.15
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: fix/directory-channel-option
#
[discordjs/discord-api-types] New tag created: 0.38.16
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/multi-96c788614a
#

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • `@dependabot ...
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#

Please describe the changes this PR makes and why it should be merged:
This PR adds support for the POST /guilds/{guild.id}/members-search route, which enables searching for guild members using a variety of query parameters - not just by nickname as with the older endpoint.

This is a preparatory step toward reworking GuildMemberManager#search() in discord.js to utilize this newer, more flexible route. By doing so, we can offer developers greater control and precision when searching fo...

sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: chore/try-to-generate-prettier-website-docs-for-routes
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/quarantined-guild-tag
#
[discordjs/discord-api-types] New branch created: feat/auto-mod-quarantine-audit-log
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/guild-tags-feature
#
[discordjs/discord-api-types] New branch created: fix/deprecate-create-guild
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.18
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#

Please describe the changes this PR makes and why it should be merged:

a few weeks back i added some new functionality to activities around being able to make state/details/large/small image all have clickable links, as well as allowing users to customize which of name/state/details is used in their status message. this PR adds the corresponding new fields and types to the GatewayActivity type

i wasn't sure whether or not to edit just the v10 types or the other versions. this is my fi...

sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: refactor/invite-expires-present
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.19
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.20
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/rate-limited-gateway-event
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#

Issue description

I tried to filter the safety_alerts_channel_id key, but it seems that APIAuditLogChangeKeySafetyAlertsChannelId is not present in APIAuditLogChange

APIAuditLogChangeKeySnowflake is also missing, but I think this one is excluded on purpose as it would override all keys with key: string and break discriminated union

Code sample

const change: APIAuditLogChange = {
  key: "safety_alerts_channel_id", // Type '"safety_alerts_channel_id"' is not...
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/pin-messages-permission
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.21
#
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/multi-c22e25d29b
#

Bumps and brace-expansion. These dependencies needed to be updated together.
Updates brace-expansion from 1.1.11 to 1.1.12

Release notes
Sourced from brace-expansion's releases.

v1.1.12

pkg: publish on tag 1.x c460dbd
fmt ccb8ac6
Fix potential ReDoS Vulnerability or Inefficient Regular Expression (#65) c3c73c8

https://github.com/juliangruber/brace-expansion/compare/v1.1.11...v1.1.12

Commits

44f33b4 1.1.12
c460dbd pkg: publish o...

sudden cypressBOT
sudden cypressBOT
#

Please describe the changes this PR makes and why it should be merged:
#1290 accidentally stripped the guild_id from GatewayVoiceStateUpdateDispatchData. After re-adding this back, I noticed it loops back around to being 1:1 with APIVoiceState making the whole change to GatewayVoiceStateUpdateDispatchData unnecessary in the first place.

As for how GatewayVoiceStateUpdateDispatchData was used in GatewayGuildCreateDispatchData, I noticed the aforementioned PR already looped ...

sudden cypressBOT
sudden cypressBOT
#

Pull Request Overview

This PR adds support for select components in Discord modals by introducing a new Label component type and updating the modal component architecture. The changes allow string select components to be used within modals, addressing the limitations of the previous action row-only approach.

Key changes:

  • Introduces a new Label component type that can wrap modal components with descriptive text
  • Adds support for string select components in modals with a required pr...
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.22
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/modals-phase-2
sudden cypressBOT
sudden cypressBOT
#

Which application or package is this feature request for?

discord.js

Feature

"Manage Permission" permission is missing on PermissionFlagsBits for channels.

ManageRoles doesn't seem to handle it since it throws:

DiscordAPIError[50013]: Missing Permissions

Ideal solution or implementation

A new enum for Manage Permissions (even if it is same number as ManageRoles) for making it clear for developers.

Alternative solutions or implementations

No response

O...

#

discord-api-types (the correct repository where this issue should be) keeps 1:1 with the API. Since the documentation does not have "manage permissions", this is not happening.

<hr>

ManageRoles doesn't seem to handle it since it throws:

DiscordAPIError[50013]: Missing Permissions

This seems separate to what you are asking. To explain: 1 << 28 is MANAGE_ROLES and is called "Manage Roles" and "Manage Permissions" in Discord. This means the solution you are asking for do...

#
[discordjs/discord-api-types] New branch created: fix/webhook-patch-flags
sudden cypressBOT
#

This seems separate to what you are asking. To explain: 1 << 28 is MANAGE_ROLES and is called "Manage Roles" and "Manage Permissions" in Discord. This means the solution you are asking for does not resolve your issue (you are doing something wrong).

Yeah, I was trying to overwrite the permission in a channel.

Seems like apps cannot update "manage permissions" permission unless you have administrator permission. This has to do something with Discord itself.

sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.23
sudden cypressBOT
#
[discord-api-types] Branch feat/rate-limited-gateway-event was force-pushed to `a59d659`
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/narrow-threads-result
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/invite-update
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.24
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.25
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/modal-label-file
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.26
sudden cypressBOT
#

Please describe the changes this PR makes and why it should be merged:

Improves type inference for APIChannel by explicitly defining the parent_id field in two types:

  • APIThreadChannel: now includes parent_id?: Snowflake, reflecting its parent thread relationship.

  • APIGuildCategoryChannel: now includes parent_id?: null, clarifying that categories do not have a parent.

**If applicable, please reference Discord API Docs PRs or commits that influenc...

sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#

I am writing an application using this lovely library and am attempting to improve my error handling. When I am attempting to retrieve a user, a successful response can be interpreted as APIUser.

However, I am having trouble identifying what error to use when interpreting an error like this. Any tips?

` Response {
status: 401,
statusText: 'Unauthorized',
headers: Headers {
date: 'Thu, 25 Sep 2025 00:12:40 GMT',
'content-type': 'application/json',
'co...

sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/multi-ea71d86905
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: fix/incident-null
#
[discordjs/discord-api-types] New branch created: fix/incident-result
#
[discordjs/discord-api-types] New branch created: fix/unstable-screening
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.27
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: fix/thread-applied-tags
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.28
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.29
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.30
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: fix/remove-api-file-upload-component
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/add-pin-permission-migration-complete
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#

c5c0312 feat(GuildFeature): add PinPermissionMigration... - sdanialraza [be8b372](https://github.com/discordjs/discord-api-types/commit/be8b3726630bd0b0f76615cb5d7e759a95de71e4) feat(Webhooks): add entitlement update and dele... - Snazzah [ea2b922](https://github.com/discordjs/discord-api-types/commit/ea2b922d12618c54139fb37986697a1a2bd33393) feat(APIAuditLogChange): add some missing chann... - Snazzah [d506d1c`](https://github.com/discordjs/discord-api-types/commit/d506d1cfc5e6d8324f3648560ec4a1b0509f8bbb) Merge branch 'main' into fix/remove-api-file-up... - almeidx

sudden cypressBOT
sudden cypressBOT
#

Please describe the changes this PR makes and why it should be merged:

Adds types for the following webhook events;

  • LOBBY_MESSAGE_CREATE
  • LOBBY_MESSAGE_UPDATE
  • LOBBY_MESSAGE_DELETE
  • GAME_DIRECT_MESSAGE_CREATE
  • GAME_DIRECT_MESSAGE_UPDATE
  • GAME_DIRECT_MESSAGE_DELETE

If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
https://github.com/discord/discord-api-docs/pull/7822

sudden cypressBOT
#

Please describe the changes this PR makes and why it should be merged:

Not documented, but is in the spec as public preview.

If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
https://github.com/discord/discord-api-docs/discussions/3306#discussioncomment-14681890
https://github.com/discord/discord-api-spec/commit/471ad9bea1245b2cf08e73a70669a909f1011102

sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.31
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/new-time-styles
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/tar-7.5.2
#

Bumps tar from 7.5.1 to 7.5.2.

Commits

d9ea73a 7.5.2
5e1a8e6 Fix sync tar.list when file size reduces while reading
0fbeaed formatting
2dbacfe add types for make-tar util
c5865d3 remove unused taprc file
bdb3809 header: only read from ustar block if not specified in Pax
d094cd7 BlueOak-1.0.0
4a6ae72 Verify invulnerability to tarmageddon attack
See full diff in compare view

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/b...

sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: chore/code-owners-update
#

Since the introduction of code owners (over 2 years ago), there has been ~600 pull requests with ~5 reviewed by those in the core team that are not already in discord-api-types (Vlad). That speaks for itself.

Made deno/ owned by discord-api-types. All pull requests would end up needing Vlad anyway without this change, which makes this entire file useless otherwise.

sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.32
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/bypass-slowmode-unstable
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.33
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: chore/contributing
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.34
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/multi-14386d50ce
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: fix/styles-update
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/zx-8.8.5
#

Bumps zx from 8.2.4 to 8.8.5.

Release notes
Sourced from zx's releases.

8.8.5 โ€” Temporary Reservoir
This release fixes the issue, when zx flushes external node_modules on linking #1348 #1349 #1355
Also [email protected] arrives here.
8.8.4 โ€” Flange Coupling
It's time. This release updates zx internals to make the ps API and related methods ProcessPromise.kill(), kill() work on Windows systems without wmic.
#1344 webpod/ps#15

WMIC will be missing in Windows 11 ...

sudden cypressBOT
sudden cypressBOT
#

Feature

Per https://github.com/discord/discord-api-docs/pull/6945:

This will be present when a filename contains special characters (ie, cyrillic alphabet).

Right now, title just says this:

https://github.com/discordjs/discord-api-types/blob/a8c28ab7289726c3f29f53c5c2468e8da400f02f/payloads/v10/message.ts#L808-L815

That's a pretty lacklustre detail for such a crucial differentiation. Let's update it.

Ideal solution or implementation

Clarify when title is present and its d...

#

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt


This section details on the original issue you should resolve

Attachment titles should clarify their distinction

Feature

Per https://github.com/discord/discord-api-docs/pull/6945:

This will be present when a filename contains special characters (ie, cyrillic alphabet).

Right now...

sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/node-forge-1.3.2
#

Bumps node-forge from 1.3.1 to 1.3.2.

Changelog
Sourced from node-forge's changelog.

1.3.2 - 2025-11-25
Security

HIGH: ASN.1 Validator Desynchronization

An Interpretation Conflict (CWE-436) vulnerability in node-forge versions
1.3.1 and below enables remote, unauthenticated attackers to craft ASN.1
structures to desynchronize schema validations, yielding a semantic
divergence that may bypass downstream cryptographic verifications and
security deci...

sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.35
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: chore/mark-bypass-slowmode-stable
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.36
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/mdast-util-to-hast-13.2.1
#

Bumps mdast-util-to-hast from 13.2.0 to 13.2.1.

Release notes
Sourced from mdast-util-to-hast's releases.

13.2.1
Fix

ab3a795 Fix support for spaces in class names

Types

efb5312 Refactor to use @imports
a5bc210 Add declaration maps

Full Changelog: https://github.com/syntax-tree/mdast-util-to-hast/compare/13.2.0...13.2.1

Commits

174795b 13.2.1
3d05b3a Update Node in Actions
ab3a795 Fix support for spaces in class names
efb5312 Refac...

sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: chore/upgrade-prettier
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: feat/guild-role-member-counts
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New tag created: 0.38.37
sudden cypressBOT
sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/multi-c8afcbbcd8
#

Bumps qs and express. These dependencies needed to be updated together.
Updates qs from 6.13.0 to 6.14.1

Changelog
Sourced from qs's changelog.

6.14.1

[Fix] ensure arrayLength applies to [] notation as well
[Fix] parse: when a custom decoder returns null for a key, ignore that key
[Refactor] parse: extract key segment splitting helper
[meta] add threat model
[actions] add workflow permissions
[Tests] stringify: incre...

sudden cypressBOT
#
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/node-forge-1.3.3
#

Bumps node-forge from 1.3.1 to 1.3.3.

Changelog
Sourced from node-forge's changelog.

1.3.3 - 2025-12-02
Fixed

[pkcs12] Make digestAlgorithm parameters optional to fix PKCS#12/PFX issues
introduced in 1.3.2.

1.3.2 - 2025-11-25
Security

HIGH: ASN.1 Validator Desynchronization

An Interpretation Conflict (CWE-436) vulnerability in node-forge versions
1.3.1 and below enables remote, unauthenticated attackers to craft ASN.1
structures to desynchronize...