#discord-api-types
5828 messages ยท Page 6 of 6 (latest)
Issue description
Try to create a forum with available_tags and TypeScript will complain saying that you're missing the 'id' even though you don't require an ID to create a tag as Discord generates the ID for you (it's a Snowflake).
Code sample
# Minimal
available_tags: [
{
name: "test",
moderated: false,
emoji_name: "๐",
}
]
It's using `RESTPostAPIGuildChannelJSONBody` for the body JSON and `ChannelType.GuildForum` as the channel t...
Can you show what you are doing?
Issue description
The naming for the body and result types of https://discord.com/developers/docs/resources/soundboard#send-soundboard-sound don't match. Renaming the body to RESTPostAPISendSoundboardSoundJSONBody seems to be the correct fix (breaking though).
Code sample
Package version
0.38.37
Runtime
Bun
Runtime version
1.3.6
Priority this issue should have
Low (slightly annoying)
[discord-api-types] Branch dependabot/npm_and_yarn/website/node-forge-1.3.3 was force-pushed to `7b6e316`
[discord-api-types] Branch dependabot/npm_and_yarn/website/multi-c8afcbbcd8 was force-pushed to `346494f`
[discord-api-types] Branch dependabot/npm_and_yarn/website/node-forge-1.3.3 was force-pushed to `289261f`
[discord-api-types] Branch dependabot/npm_and_yarn/website/multi-c8afcbbcd8 was force-pushed to `e1f3452`
Issue description
According to API docs, the invite resource now has roles. (When creating an invite, the client UI now has the option to pick roles to assign on join, and these are visible in the invites table in the server settings.)
https://discord.com/developers/docs/resources/invite#invite-object
Unfortunately it's not part of the gateway event.
https://discord.com/developers/docs/events/gateway-events#invite-create
But it's part of guild and channel invite request responses.
...
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/tar-7.5.3
1870078 chore(deps): bump tar from 7.5.2 to 7.5.3 - dependabot[bot]
Bumps tar from 7.5.2 to 7.5.3.
Commits
0313844 7.5.3
340eb28 fix: sanitize absolute linkpaths properly
8bb83f7 update deps
1c4aedd Fix typo in onWriteEntry documentation
See full diff in compare view
[](https://docs.github.com/en/github/managing-security-vulner...
Please describe the changes this PR makes and why it should be merged:
This MR adds the new routes and their responses for target users. It also adds the target_users_file key in a formdata version of RESTPostAPIChannelInviteJSONBody.
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
https://discord.com/developers/docs/change-log#new-invite-endpoints
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/tar-7.5.6
02c7ff0 chore(deps): bump tar from 7.5.2 to 7.5.6 - dependabot[bot]
Bumps tar from 7.5.2 to 7.5.6.
Commits
394ece6 7.5.6
7d4cc17 fix race puting a Link ahead of its target File
26ab904 7.5.5
e9a1ddb fix: do not prevent valid linkpaths within archive
911c886 7.5.4
3b1abfa normalize out unicode ligatures
a43478c remove some unused files
970c58f update deps
bb21974 update changelog
0313844 7.5.3
Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by isaacs, a new releaser for ta...
Please describe the changes this PR makes and why it should be merged:
Add payloads for new components in modal
Refrence: #1317206872763404481 message
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
Can you add this for API v9 too please?
export enum InviteTargetUsersJobStatus {
Otherwise the name is too broad
Also missed
roleson invite object. ref: discord.com/developers/docs/resources/invite#invite-object-invite-structure
Oops, didn't realize invites changed, sorry
* @defaultValue {@link APICheckboxGroupComponent.options} length
* @defaultValue {@link APICheckboxGroupComponent.options} length
errorMessage does not seem to be a property anywhere? Everything is in snake case?
Stemmed from https://github.com/discord/discord-api-spec/blob/main/specs/openapi.json#L34806 (they used snake case but I swapped it for some reason)
[discordjs/discord-api-types] New branch created: chore/release/0.38.38
7184d90 chore(release): 0.38.38 ๐ - github-actions[bot]
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.37 to 0.38.38.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
[discordjs/discord-api-types] New branch created: feat/stable-modal-components
dcdeae3 feat: mark radio groups, checkbox groups, and c... - almeidx
๐ This pull request will be closed and re-created as there may have been new changes between the commit this pull request was opened for and the latest commit.
[discordjs/discord-api-types] New branch created: chore/release/0.38.38
d09b378 chore(release): 0.38.38 ๐ - github-actions[bot]
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.37 to 0.38.38.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/tar-7.5.7
a269dea chore(deps): bump tar from 7.5.6 to 7.5.7 - dependabot[bot]
Bumps tar from 7.5.6 to 7.5.7.
Commits
4a37eb9 7.5.7
f4a7aa9 fix: properly sanitize hard links containing ..
See full diff in compare view
Maintainer changes
This version was pushed to npm by isaacs, a new releaser for tar since your current version.
[](https...
there is no query string param
0bd1de5 chore(release): 0.38.38 ๐ (#1500) - vladfrangu
[discord-api-types] Branch dependabot/npm_and_yarn/website/multi-c8afcbbcd8 was force-pushed to `b4e8ba1`
[discord-api-types] Branch dependabot/npm_and_yarn/website/node-forge-1.3.3 was force-pushed to `eb880ca`
[discordjs/discord-api-types] New tag created: 0.38.38
[discord-api-types] Branch dependabot/npm_and_yarn/tar-7.5.7 was force-pushed to `49c65fc`
Feature
Generic Interaction types that would allow the casting of interaction types based on known data of the command that produced the interaction
This would significantly improve type safety and remove pointless checks in the handling of incoming discord interactions
Ideal solution or implementation
An ideal solution would be the addition of generic types like
GenericAPIInteraction
GenericAPIChatInputApplicationCommandInteraction,
or somehting of this sorts
Specific impleme...
I don't see the benefit for your example. You'd need to check the command name either way to make sure the type is correct before you can call that function. And in that function you already know the value of name etc. and could get it directly from data. What's gained here?
Can you confirm its a string and not a buffer?
I don't see the benefit for your example. You'd need to check the command name either way to make sure the type is correct before you can call that function. And in that function you already know the value of name etc. and could get it directly from
data. What's gained here?
I am terrible at explaining stuff but I'll try either way
name is something that you know either way, yes. That is what I use to identify where the interaction originated,
however when working with options, subcomma...
The content type is text/csv and just doing res.text() processes it correctly, so I think string makes sense.
I feel like this would make sense exclusively if you could somehow guarantee that your object definition of the command is the only "version" of that command that is valid at all times. By design, unlike for example message content commands where entire thing is contained within your app's process, Discord's interaction commands cannot provide such guarantee as creating or updating a command can happen completely out of band from the process or even codebase that will later on receive those c...
Issue description
try to use type APIApplicationCommandSubcommandOption or APIApplicationCommandSubcommandGroupOption
see that they have a required boolean property instead of being never
Discord Docs: https://discord.com/developers/docs/interactions/application-commands#:~:text=all but,SUB_COMMAND_GROUP
Code sample
const testSubcommandOption: APIApplicationCommandSubcommandOption = {
description: 'test',
name: 'test',
type: ApplicationCommandOptionType....
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/isaacs/brace-expansion-5.0.1
eefc476 chore(deps): bump @isaacs/brace-expansion in /w... - dependabot[bot]
Issue description
TypeScript just complaining about how 'topic' doesn't exist
Code sample
const channel = channels.find(c => c.topic === "test");
// Tried this and still doesn't work
const channel = channels.find(c => {
if (c.type !== ChannelType.GuildText) return false;
return c.topic === "test";
});
Package version
Runtime
Node.js
Runtime version
v24.2.0
Priority this issue should have
Medium (should be f...
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/webpack-5.105.0
d44aae4 chore(deps): bump webpack from 5.96.1 to 5.105.... - dependabot[bot]
Bumps webpack from 5.96.1 to 5.105.0.
Release notes
Sourced from webpack's releases.
v5.105.0
Minor Changes
Allow resolving worker module by export condition name when using new Worker() (by @โhai-x in #20353)
Detect conditional imports to avoid compile-time linking errors for non-existent exports. (by @โhai-x in #20320)
Added the tsconfig option for the resolver options (replacement for tsconfig-paths-webpack-plugin). Can be false (disabled), tru...
Issue description
The property 'invite_cover_image' does not exist on the type GatewayActivityAssets stored in payloads/v10/gateway.
We believe that it would be beneficial for the resolution for this bug to also convert these types to an interface for a better solution. See the below linked PR for more info.
This bug is currently blocking the below linked PR a...
[discordjs/discord-api-types] New branch created: fix/nullable-radio-group
f64d30a fix(APIModalSubmitRadioGroupComponent): nullabl... - Jiralite
#1326626041397248113 message
Please describe the changes this PR makes and why it should be merged:
This PR will add a missing property to the GatewayActivityAssets type, and will use an interface on GatewayActivityAssets , andGatewayActivitySecrets.
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
Activity Assets, [Activity Secrets](https://discord.com/developers/d...
Can you make these changes to v9 too?
Redundant
* Displayed as a banner on a Game Invite.
What is channels typed as here? I assume it's APIGuildChannel' judging by the error in your issue title, which is the base interface and can never be inferred to have additional properties. You'd probably want to type it as RESTAPIGuildChannelResolvable` which is a union of all GuildChannel types instead.
What is
channelstyped as here? I assume it'sAPIGuildChanneljudging by the error in your issue title, which is the base interface and can never be inferred to have additional properties. You'd probably want to type it asRESTAPIGuildChannelResolvablewhich is a union of all GuildChannel types instead.
This worked, thanks
https://github.com/discord/discord-api-docs/pull/8117 acc to this, not all of the properties are returned for role objects returned in invites, might wanna partialize it or since the properties returned through this endpoint is known, we can maybe make an APIInviteRole interface or something. Not sure what would be the best here
Checking the API specification, if it's updated, would be a good idea in that case.
export type APIInvitePartialRole = Pick<APIRole, 'color' | 'colors' | 'icon' | 'id' | 'name' | 'position'>;
@Qjuh is this suitable for docs?
No, intersections never are. If possible interfaces should always be preferred from a docs perspective.
That follows how all the other payload_jsons are done
<img width="654" height="222" alt="Screenshot 2026-02-12 at 8 32 13โฏAM" src="https://github.com/user-attachments/assets/e6d1cc2c-80ca-43d5-aae4-bb75c19975c8" />
And they are horrible from docs perspective too. I just answered Jiralite's question
https://discord.js.org/docs/packages/discord-api-types/0.38.38/v10/RESTPostAPIChannelMessageFormDataBody:TypeAlias
Issue description
The implications of the never type means you will never be able to observe the type which isn't true in the case of 204 as those are usually represented through undefined. 204 is an OK status code, so throwing an Exception to satisfy the semantics of never doesn't make sense.
In the Typescript handbook, they describe it as appropriate for use in methods which always return an exception as you cannot...
915a072 chore(deps): bump qs and express in /website - dependabot[bot]
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/multi-a07fd7252a
Bumps qs and express. These dependencies needed to be updated together.
Updates qs from 6.13.0 to 6.14.2
Changelog
Sourced from qs's changelog.
6.14.2
[Fix] parse: mark overflow objects for indexed notation exceeding arrayLimit (#546)
[Fix] arrayLimit means max count, not max index, in combine/merge/parseArrayValue
[Fix] parse: throw on arrayLimit exceeded with indexed notation when throwOnLimitExceeded is true (#529...
[discordjs/discord-api-types] New branch created: chore/release/0.38.39
590fa08 chore(release): 0.38.39 ๐ - github-actions[bot]
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.38 to 0.38.39.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
a8e30a6 chore(release): 0.38.39 ๐ (#1525) - vladfrangu
[discordjs/discord-api-types] New tag created: 0.38.39
If i understood the issue correctly, something like this should work
interface NameWhtvX {
target_users_file?: unknown;
}
interface NameWhtvXWithJSONBody extends NameWhtvX, RESTPostAPIChannelMessage JSONBody {}
interface NameWhtvXWithPayload extends NameWhtvX {
payload_json?: string
}
type MainWhtv = NameWhtvXWithJSONBody | NameWhtvXWithPayload
Leaving a comment here to follow up on potentially getting another reviewer to take a look at this PR to get it merged - we need one more reviewer to take a look if possible.
@vladfrangu @Jiralite @sdanialraza
TIA
8fd4024 fix: export missing properties and use interfac... - AsadHumayun
38e98c8 chore: upgrade prettier (#1460) - almeidx
5a4c4af chore(deps): update actions/checkout action to ... - renovate[bot]
5b82aa5 docs(APIAttachment): clarify title field distin... - Copilot
c533c76 chore(deps): bump js-yaml and markdownlint-cli2... - dependabot[bot]
60cdc32 chore(deps): update eslint/prettier to v8.49.0 ... - renovate[bot]
2a9dfd4 feat: mark guild member role counts endpoint as... - almeidx
Please describe the changes this PR makes and why it should be merged:
closes #1522
The majority of the usage of never in the project does not align with the semantics of the keyword and this PR replaces them with void. The keyword implies the value being typed as never cannot be observed under any conditions such as in the case of only throwing an exception or process.exit(), which is not true in cases of where these types would be used such as return types for routes that re...
[discordjs/discord-api-types] New branch created: chore/release/0.38.40
b2ece4b chore(release): 0.38.40 ๐ - github-actions[bot]
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.39 to 0.38.40.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
Some of the base types for gateway payloads that would have been modified would not work to be replaced as void, so those have been kept
Which ones? ๐๏ธ
Also should we use undefined instead of void?
I think for types like this one:
export type RPCSubscribeEntitlementDeleteArgs = Record<string, void>;
undefined might fit better. It's like saying an object comprises solely of keys?
It was the heartbeat and reconnect packets that I couldn't change to void without some ts errors. I hadn't considered undefined, but I do believe undefined could work better and it addresses the issue of those packets not being able to be changed from never. I've updated the usages I'd previously updated as well as documentation
๐ This pull request will be closed and re-created as there may have been new changes between the commit this pull request was opened for and the latest commit.
[discordjs/discord-api-types] New branch created: chore/release/0.38.40
c0421f1 chore(release): 0.38.40 ๐ - github-actions[bot]
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.39 to 0.38.40.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
29d8001 chore(deps): bump tar from 7.5.7 to 7.5.9 - dependabot[bot]
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/tar-7.5.9
Bumps tar from 7.5.7 to 7.5.9.
Commits
1f0c2c9 7.5.9
fbb0851 build minified version as default export
6b8eba0 7.5.8
2cb1120 fix(unpack): improve UnpackSync symlink error "into" path accuracy
d18e4e1 fix: do not write linkpaths through symlinks
See full diff in compare view
Maintainer changes
This version was pushed to npm by isaacs, a new releaser for tar since your current version.
Install script changes
This version adds prepare script ...
2658037 chore(release): 0.38.40 ๐ (#1528) - vladfrangu
[discordjs/discord-api-types] New tag created: 0.38.40
Issue description
I believe the recent update to Discord's documentation site may have lead to various links in this package being broken as a result.
Below are some examples of only the links that I found were broken. I suspect there could be more and am not entirely aware of the full scope that this has affected the docs here yet - some links seem to work just fine, and some are broken.
E.x.:
https://github.com/discordjs/discord-api-types/blob/6b6b256d5fc70d2cedb3613b5f52b3de0651...
@Jiralite could this issue be marked as good first issue please? It should involve no code changes and only updates to Discord docs links.
From a docs perspective Pick is not a good idea. Would be better to introduce this APIInviteRole as new interface and do
export interface APIRole extends APIInviteRole { ... }
moving the common properties to APIInviteRole.
c726e8b chore(deps): bump zx from 8.2.4 to 8.8.5 in /we... - dependabot[bot]
47b0d07 chore(deps): bump mdast-util-to-hast from 13.2.... - dependabot[bot]
c2872ac chore(deps): bump node-forge from 1.3.1 to 1.3.... - dependabot[bot]
7e0de6e chore(deps): bump @isaacs/brace-expansion in /w... - dependabot[bot]
177e9d1 chore(deps): bump webpack from 5.96.1 to 5.105.... - dependabot[bot]
Looks like tar is up-to-date now, so this is no longer needed.
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/multi-00e71425c8
e05dd11 chore(deps): bump ajv and eslint-config-neon in... - dependabot[bot]
Bumps ajv to 6.14.0 and updates ancestor dependencies ajv and eslint-config-neon. These dependencies need to be updated together.
Updates ajv from 6.12.6 to 6.14.0
Commits
e3af0a7 6.14.0
b552ed6 add regExp option to address $data exploit via a regular expression (CVE-2025...
72f2286 docs: update v7 info
231e52b Merge pull request #1320 from philsturgeon/patch-1
...
[discord-api-types] Branch dependabot/npm_and_yarn/website/multi-a07fd7252a was force-pushed to `7abeb87`
36e7690 chore(deps): bump qs and express in /website (#... - dependabot[bot]
e60a3f8 chore(deps): update dependency @actions/glob to... - renovate[bot]
[discord-api-types] Branch dependabot/npm_and_yarn/website/multi-00e71425c8 was force-pushed to `8c30d45`
164f79e chore(deps): update actions/cache action to v5 ... - renovate[bot]
[discord-api-types] Branch dependabot/npm_and_yarn/website/multi-00e71425c8 was force-pushed to `07f1418`
c93fdc0 chore(deps): update dependency @actions/core to... - renovate[bot]
but APIInviteRole is technically derivative of APIRole, so it feels kinda confusing to make the actual APIRole type an extension of it.
I feel like it would seem backwards when reading the source. If you guys want this I'm fine to do it, but the Pick is also a precedented pattern.
41a6592 Revert "chore(deps): bump webpack from 5.96.1 t... - almeidx
[discordjs/discord-api-types] New branch created: revert-1515-dependabot/npm_and_yarn/website/webpack-5.105.0
Reverts discordjs/discord-api-types#1515
32975ae Revert "chore(deps): bump webpack from 5.96.1 t... - almeidx
[discord-api-types] Branch dependabot/npm_and_yarn/website/multi-00e71425c8 was force-pushed to `f948886`
[discordjs/discord-api-types] New branch created: chore/release/0.38.41
5255637 chore(release): 0.38.41 ๐ - github-actions[bot]
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.40 to 0.38.41.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
๐ This pull request will be closed and re-created as there may have been new changes between the commit this pull request was opened for and the latest commit.
[discordjs/discord-api-types] New branch created: chore/release/0.38.41
63159fa chore(release): 0.38.41 ๐ - github-actions[bot]
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.40 to 0.38.41.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
Please describe the changes this PR makes and why it should be merged:
Added close code 4017 (E2EE/DAVE protocol required)
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
Pretty sure the semantics should be EndToEndEncryptionDAVEProtocolRequired?
[discord-api-types] Branch dependabot/npm_and_yarn/website/multi-00e71425c8 was force-pushed to `4a9ac46`
Oof, the CI is wrongly throwing errors on voice v8 (CC @Jiralite ๐)
beb982d ci: PR CI should throw errors on voice v4, not v8 - vladfrangu
1353b59 feat(voice): add close code 4017 (#1538) - kshitijanurag
๐ This pull request will be closed and re-created as there may have been new changes between the commit this pull request was opened for and the latest commit.
42ae637 chore(release): 0.38.41 ๐ - github-actions[bot]
[discordjs/discord-api-types] New branch created: chore/release/0.38.41
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.40 to 0.38.41.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/rollup-2.80.0
7347e17 chore(deps): bump rollup from 2.79.2 to 2.80.0 ... - dependabot[bot]
Bumps rollup from 2.79.2 to 2.80.0.
Changelog
Sourced from rollup's changelog.
2.80.0
2026-02-22
Features
Throw when the generated bundle contains paths that would leave the output directory (#6277)
Pull Requests
#6277: Validate bundle stays within output dir (@โlukastaegert)
Commits
d17ae15 2.80.0
d6dee5e Validate bundle stays within output dir (#6277)
See full diff in compare view
Install script changes
This version adds prepare script that r...
The dead link https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types is linked a few places too, it should be https://docs.discord.com/developers/events/gateway-events#activity-object
Lol https://docs.discord.com/developers/topics/gateway-events#activity-object-activity-party too, it should be https://docs.discord.com/developers/events/gateway-events#activity-object-activity-party
Yeah, there are a few broken links and I'm not entirely sure of the scope of the matter either. AFAIK the library provides the link to the Discord API docs for every type it can, so there are quite a few links that could be broken...
yee, just gonna update the first message i send when i find more, currently fully updating an unmaintained library so i'll likely hit a good handful
3955020 chore(deps): bump immutable from 5.0.3 to 5.1.5... - dependabot[bot]
Bumps immutable from 5.0.3 to 5.1.5.
Release notes
Sourced from immutable's releases.
v5.1.5
What's Changed
Fix Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in immutable
Upgrade devtools and use immutable version by @โjdeniau in immutable-js/immutable-js#2158
Full Changelog: https://github.com/immutable-js/immutable-js/compare/v5.1.4...v5.1.5
v5.1.4
What's Changed
Migrate some files to TS by @โjd...
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/immutable-5.1.5
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/svgo-3.3.3
Bumps svgo from 3.3.2 to 3.3.3.
Release notes
Sourced from svgo's releases.
v3.3.3
What's Changed
Dependencies
Migrates from our unsupported fork of sax (@โtrysound/sax) to the upstream version of sax (sax).
Bug Fixes
No longer throws error when encountering comments in DTD.
Metrics
Before and after of the browser bundle of each respective version:
v3.3.2
v3.3.3
Delta
svgo.browser.js
910.9 kB
912.9 kB
โฌ๏ธ 2 kB
Support
SVGO v3 is not officially su...
c4d3ab9 chore(deps): bump svgo from 3.3.2 to 3.3.3 in /... - dependabot[bot]
๐ This pull request will be closed and re-created as there may have been new changes between the commit this pull request was opened for and the latest commit.
[discordjs/discord-api-types] New branch created: chore/release/0.38.41
8612a63 chore(release): 0.38.41 ๐ - github-actions[bot]
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.40 to 0.38.41.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
5ea94a6 feat: application command option allowed channe... - didinele
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/tar-7.5.10
9f1ae5f chore(deps): bump tar from 7.5.9 to 7.5.10 - dependabot[bot]
Bumps tar from 7.5.9 to 7.5.10.
Commits
2b72abc 7.5.10
7bc755d parse root off paths before sanitizing .. parts
c8cb846 update deps
See full diff in compare view
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-up...
๐ This pull request will be closed and re-created as there may have been new changes between the commit this pull request was opened for and the latest commit.
9ac02eb chore(release): 0.38.41 ๐ - github-actions[bot]
[discordjs/discord-api-types] New branch created: chore/release/0.38.41
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.40 to 0.38.41.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
cbec753 chore(release): 0.38.41 ๐ (#1550) - vladfrangu
[discordjs/discord-api-types] New tag created: 0.38.41
[discord-api-types] Branch dependabot/npm_and_yarn/website/rollup-2.80.0 was force-pushed to `74536fc`
[discord-api-types] Branch dependabot/npm_and_yarn/website/immutable-5.1.5 was force-pushed to `145c790`
[discord-api-types] Branch dependabot/npm_and_yarn/website/svgo-3.3.3 was force-pushed to `4067077`
[discord-api-types] Branch dependabot/npm_and_yarn/tar-7.5.10 was force-pushed to `86c3f13`
Looks like these dependencies are no longer updatable, so this is no longer needed.
Hi! Iโd like to work on this issue. If itโs available, could you please assign it to me? I can submit a PR soon.
Please describe the changes this PR makes and why it should be merged:
fixes #1532
these are released now
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
https://github.com/discord/discord-api-docs/pull/8123
these should be redirecting- looks like some redirects are broken, we will look into it
[discordjs/discord-api-types] New branch created: chore/release/0.38.42
878e3f5 chore(release): 0.38.42 ๐ - github-actions[bot]
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.41 to 0.38.42.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
Please describe the changes this PR makes and why it should be merged:
Minor documentation updates to three permission flags to improve accuracy and clarity.
AddReactions: Added a clarification that this permission does not apply to reacting with an existing reaction on a message, only to adding new reactions.RequestToSpeak: Added a note that this permission is under active development and may be changed or removed.UseEmbeddedActivities: Updated the applicable channel ...
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/tar-7.5.11
cc484ef chore(deps): bump tar from 7.5.10 to 7.5.11 - dependabot[bot]
[discordjs/discord-api-types] Pull request opened: #1559 chore(deps): bump tar from 7.5.10 to 7.5.11
Bumps tar from 7.5.10 to 7.5.11.
Commits
bf776f6 7.5.11
f48b5fa prevent escaping symlinks with drive-relative paths
97cff15 docs: more security info
See full diff in compare view
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dep...
[discord-api-types] Branch dependabot/npm_and_yarn/website/rollup-2.80.0 was force-pushed to `fe3513a`
[discord-api-types] Branch dependabot/npm_and_yarn/website/svgo-3.3.3 was force-pushed to `74c2101`
[discord-api-types] Branch dependabot/npm_and_yarn/website/immutable-5.1.5 was force-pushed to `e694461`
[discord-api-types] Branch dependabot/npm_and_yarn/tar-7.5.11 was force-pushed to `e35e304`
Looks like tar is no longer updatable, so this is no longer needed.
[discord-api-types] Branch dependabot/npm_and_yarn/website/immutable-5.1.5 was force-pushed to `1a41e0c`
[discord-api-types] Branch dependabot/npm_and_yarn/website/svgo-3.3.3 was force-pushed to `c11036f`
[discord-api-types] Branch dependabot/npm_and_yarn/website/rollup-2.80.0 was force-pushed to `0bb4309`
Please describe the changes this PR makes and why it should be merged:
Replaced references to MANAGE_MESSAGES and MANAGE_CHANNEL as slowmode bypass permissions with BYPASS_SLOWMODE.
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
https://github.com/discord/discord-api-docs/pull/8194
6b47a0c docs(channel): update slowmode bypass permissio... - kshitijanurag
6dc3caa chore(deps): bump svgo from 3.3.2 to 3.3.3 in /... - dependabot[bot]
c242454 chore(deps): bump immutable from 5.0.3 to 5.1.5... - dependabot[bot]
[discord-api-types] Branch dependabot/npm_and_yarn/website/rollup-2.80.0 was force-pushed to `f8efaea`
17eade7 chore(deps): update crazy-max/ghaction-github-l... - renovate[bot]
a73d1d0 docs: update TSDoc comments for `PermissionFlag... - kshitijanurag
[discordjs/discord-api-types] New branch created: fix/split-grouped-dispatch-types
11dd8fa fix: split grouped gateway dispatch types - almeidx
[discord-api-types] Branch fix/split-grouped-dispatch-types was force-pushed to `90a7df3`
Currently, GatewayGuildBanAddDispatch is assigned to a grouped type (GatewayGuildBanModifyDispatch) which uses a union for the t property:
This means if you create a generic type to map a GatewayDispatchEvents enum member to its respective dispatch data type, it fails for these grouped types. For example, Extract is never.
The current way it is also means...
2f062b5 chore: run clean:node on pre-commit - almeidx
[discordjs/discord-api-types] New branch created: chore/clean-node-on-pre-commit
If one runs the yarn build:node script manually and never runs clean:node, subsequent commits will generate incorrect deno types
Please describe the changes this PR makes and why it should be merged:
Add support for shared client theme
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
https://github.com/discord/discord-api-docs/pull/7952
Hey @advaith1, thanks for fixing. I've done some more looking around and have documented the broken links here: https://gist.github.com/AsadHumayun/51aabdd47b09ca1c3ff77046e29b7873.
They seem to be mostly be gateway, gateway-events, and various others as well but these are the main ones. There are ~200 links that are broken or would need updating. I did this by pinging links at 1 second intervals so did try to keep within respectful rate limits.
* The custom client-side theme to share via the message
This is optional and nullable according to the docs
base_theme?: BaseThemeType | null;
* The custom client-side theme to share via the message
base_theme?: BaseThemeType | null;
unicode_emoji is missing here btw.
Can you also add the new error codes relating to this?
[discordjs/discord-api-types] New branch created: fix/role-colors-annotations
f334deb fix: role colors optionality, color deprecation... - almeidx
- Make
colorsrequired on APIRole (https://github.com/discord/discord-api-docs/commit/be4846c2) - Add
@deprecatedtocoloron APIRole - Remove
@unstablefromEntitlementUpdate/EntitlementDeletewebhook events (https://github.com/discord/discord-api-docs/commit/a544734f) - Remove
@unstablefromAPICheckboxGroupOption(missed from #1556)
[discordjs/discord-api-types] New branch created: fix/webhook-nullability
626780f fix(webhook): correct nullability for guild_id ... - almeidx
Please describe the changes this PR makes and why it should be merged:
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
[discordjs/discord-api-types] New branch created: fix/send-soundboard-result
b18beaa fix: send soundboard result type - almeidx
The Send Soundboard Sound endpoint returns 204 No Content as can be seen in the spec.
https://github.com/discord/discord-api-spec/blob/7cba79e03a393456fc904cff470097d3be383bec/specs/openapi.json#L4469
[discordjs/discord-api-types] New branch created: fix/gateway-invite-compress
b881008 fix(Gateway): invite create timestamp type, zst... - almeidx
- Fix
created_attype from number to string (ISO8601 date) - Add
zstd-streamas compress option (https://github.com/discord/discord-api-docs/commit/549e6567)
In the context of @discordjs/rest, it will be an ArrayBuffer
https://github.com/discordjs/discord.js/blob/2a067216c410e402f3ada7cd9eb29f566636b0ad/packages/rest/src/lib/utils/utils.ts#L61-L67
Not sure what @vladfrangu wants here. Outside of /rest, it depends on how you want to parse the response, of course
Seemingly this has been renamed to "SDK DM Message Structure" on the documentation, i believe?
https://docs.discord.com/developers/events/webhook-events#sdk-dm-message-object
The fields are slightly different
88a5941 feat(Application): add webhook event fields to ... - almeidx
[discordjs/discord-api-types] New branch created: feat/application-fields
[discordjs/discord-api-types] New branch created: fix/guild-member-modify-flags
2b35d43 feat(Guild): add flags to modify guild member - almeidx
Please describe the changes this PR makes and why it should be merged:
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
https://github.com/discord/discord-api-docs/commit/c38ca4d8
[discordjs/discord-api-types] New branch created: feat/guild-member-collectibles
97171e6 feat(Guild): add collectibles to guild member - almeidx
Please describe the changes this PR makes and why it should be merged:
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
a451be4 fix(guildScheduledEvent): entity_type required,... - almeidx
[discordjs/discord-api-types] New branch created: fix/guild-scheduled-event
Please describe the changes this PR makes and why it should be merged:
Seemingly, entity_type was always required from the beginning.
https://github.com/discord/discord-api-docs/commit/1298152172d3359abf069d1b24d4bbc85532b735
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
https://github.com/discord/discord-api-docs/commit/84f3290e
bf12195 fix(guildScheduledEvent): entity_type required,... - almeidx
c8ef2fe feat(Guild): add collectibles to guild member (... - almeidx
46b8cbd feat(Guild): add flags to modify guild member (... - almeidx
e1ff008 feat(Application): add webhook event fields to ... - almeidx
32b544e chore: run clean:node on pre-commit (#1564) - almeidx
38b9467 fix(Gateway): invite create timestamp type, zst... - almeidx
f1a3cb7 fix: send soundboard result type (#1568) - almeidx
c3b331d feat(message): shared client themes (#1565) - kshitijanurag
0000e9a fix: role colors optionality, color deprecation... - almeidx
[discordjs/discord-api-types] New branch created: fix/guild-optionality-nullability
4cdf252 fix(guild): correct optionality and nullability... - almeidx
[discord-api-types] Branch fix/guild-optionality-nullability was force-pushed to `27a0952`
[discord-api-types] Branch fix/guild-optionality-nullability was force-pushed to `890b9ab`
region, marked as optional and nullable ever since the deprecation https://github.com/discord/discord-api-docs/commit/0a2e03a5stickershas always been optional on guild seemingly https://github.com/discord/discord-api-docs/commit/3442b8f0#diff-6a43fc10e10de61f31b90ab22421ef0612d0ea75e3cd53891c6393a6fb84872dR60descriptionon guild preview has always been nullable https://github.com/discord/discord-api-docs/commit/adedab78#diff-6a43fc10e10de61f31b90ab22421ef0612d0ea75e3cd53891c6...
bf12195 fix(guildScheduledEvent): entity_type required,... - almeidx
c8ef2fe feat(Guild): add collectibles to guild member (... - almeidx
46b8cbd feat(Guild): add flags to modify guild member (... - almeidx
e1ff008 feat(Application): add webhook event fields to ... - almeidx
32b544e chore: run clean:node on pre-commit (#1564) - almeidx
f76c2fa fix: split grouped gateway dispatch types (#1563) - almeidx
86e1292 fix(Channel): correct PATCH channel field nulla... - almeidx
[discordjs/discord-api-types] New branch created: fix/channel-patch-nullability
[discordjs/discord-api-types] New branch created: fix/poll-expiry-nullability
f705305 fix(poll): mark expiry as nullable - almeidx
Always has been. Oopsies
Please describe the changes this PR makes and why it should be merged:
Add Unset base theme type enum.
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
- Discord API Docs Reference: https://github.com/discord/discord-api-docs/pull/8222
- Discord API Spec Reference: https://github.com/discord/discord-api-spec/blob/main/specs/openapi.json#L30912
cf6476d fix(Guild): correct optionality and nullability... - almeidx
dea22dc fix(poll): mark expiry as nullable (#1576) - almeidx
a4aa724 fix(Channel): correct PATCH channel field nulla... - almeidx
[discordjs/discord-api-types] New branch created: feat/activity-instance
08396e4 feat(Application): add activity instance types ... - almeidx
Please describe the changes this PR makes and why it should be merged:
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
[discord-api-types] Branch feat/activity-instance was force-pushed to `3cd9cc5`
[discordjs/discord-api-types] New branch created: feat/missing-json-error-codes
2cfc18b feat(Rest): add missing JSON error codes - almeidx
Please describe the changes this PR makes and why it should be merged:
The new error messages are unreasonably long. Hopefully these names make sense.
There was also a typo on 50138...
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
[discordjs/discord-api-types] New branch created: fix/voice-state-audit-log
f4ddfd2 fix(Voice, AuditLog): voice state channel_id, a... - almeidx
application_idwas added on https://github.com/discord/discord-api-docs/commit/61869122channel_idon voice state patch was made optional on https://github.com/discord/discord-api-docs/commit/072b4bc0
[discordjs/discord-api-types] New branch created: fix/interaction-fields
83df57b fix(Interactions): add missing fields to types - almeidx
ba01bac feat(Rest): add missing JSON error codes (#1579) - almeidx
811314a fix(Voice, AuditLog): voice state channel_id, a... - almeidx
bf12195 fix(guildScheduledEvent): entity_type required,... - almeidx
c8ef2fe feat(Guild): add collectibles to guild member (... - almeidx
46b8cbd feat(Guild): add flags to modify guild member (... - almeidx
e1ff008 feat(Application): add webhook event fields to ... - almeidx
32b544e chore: run clean:node on pre-commit (#1564) - almeidx
Please describe the changes this PR makes and why it should be merged:
Add support for guild messages search
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
https://github.com/discord/discord-api-docs/pull/8010
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/flatted-3.4.2
58373e2 chore(deps): bump flatted from 3.2.5 to 3.4.2 i... - dependabot[bot]
Bumps flatted from 3.2.5 to 3.4.2.
Commits
3bf0909 3.4.2
885ddcc fix CWE-1321
0bdba70 added flatted-view to the benchmark
2a02dce 3.4.1
fba4e8f Merge pull request #89 from WebReflection/python-fix
5fe8648 added "when in Rome" also a test for PHP
53517ad some minor improvement
b3e2a0c Fixing recursion issue in Python too
c4b46db Add SECURITY.md for security policy and reporting
f86d071 Create dependabot.yml for version updates
Additional ...
[discord-api-types] Branch dependabot/npm_and_yarn/website/rollup-2.80.0 was force-pushed to `5bfe55f`
Please describe the changes this PR makes and why it should be merged:
For bots, global_name on User Object is always null.
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
https://github.com/discord/discord-api-docs/pull/8227
899544f chore(deps): update pnpm/action-setup action to... - renovate[bot]
25778ae fix(webhook): correct nullability for guild_id ... - almeidx
Please add this to API v9 too if its supported
b985362 feat(Application): add activity instance types ... - almeidx
This is in the wrong place. Should be on messages, which is the key which has a nested array
This is probably more appropriateยง
threads?: APIThreadChannel[];
Docs say this doesn't include reactions. Maybe we should omit the key here?
cc082a4 chore: fix lint - vladfrangu
d7192dc chore(deps): update dependency eslint-config-ne... - renovate[bot]
ebdb44e chore(deps): bump flatted from 3.2.5 to 3.4.2 i... - dependabot[bot]
[discord-api-types] Branch dependabot/npm_and_yarn/website/rollup-2.80.0 was force-pushed to `bf871b4`
b4eaf0b chore(deps): bump rollup from 2.79.2 to 2.80.0 ... - dependabot[bot]
Can you please rebase your PR and adjust to undefined instead of void?
e65e02f feat(BaseThemeType): add Unset base theme typ... - kshitijanurag
We usually leave an empty line in between numeric gaps
UnknownInviteTargetUsersJob = 10_124,
UnknownInviteTargetUsers = 10_129,
Ah I thought it was about reasonably related codes
Deno build is outdated. Besides, lgtm
Please add this to API v9 too if its supported
Backported to API v9
Please add this to API v9 too if its supported
Please describe the changes this PR makes and why it should be merged:
Add JSON Error Code 50278
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
Both Error Code 50007 and 50278 seem to have the same error message so not sure if the enum name is correct or not.
I've rebased the branch to upstream main and I've already changed it to use undefined instead of void prior
Well... ๐ this is a new one.
Lets add a _2 prefix so its clear its not part of the message, and otherwise best we can do is also export an array for these error codes
Could we also please add documentation to both error codes stating there is a similar error code?
Deno build is outdated. Besides, lgtm
Seems like there were some issues with your rebase
I feel like these ones are Record<string, unknown> because a record of string, undefined makes no real sense
add back the callout for errors
Lets double check this still works! never in this context is fine to be kept fwiw
RESTPostAPISendSoundboardSoundResultchange is missing on v9client_id?: neverchange is missing on v9- errors callout missing on README
According to Discord documentation:
If the entity you are searching is not yet indexed, the endpoint will return a 202 accepted response. The response body will not contain any search results, and will look similar to an error response:
{
"message": "Index not yet available. Try again later",
"code": 110000,
"documents_indexed": 0,
"retry_after": 2
}
Should we add a response type for this as well which is separate from APIMessageSearchResult?
Also, shoul...
RESTPostAPISendSoundboardSoundResultchange is missing on v9client_id?: neverchange is missing on v10- errors callout missing on README
Lets add that as a REST response type. For the negation enum....sure why not
[discordjs/discord-api-types] New branch created: refactor/rename-duplicate-error-code
fc880d0 refactor: rename duplicate error code - almeidx
Fyi there is now a documented difference https://github.com/discord/discord-api-docs/pull/8244
50278: Cannot send messages to this user due to having no mutual guilds50007: Cannot send messages to this user
Hasn't been released yet so not major
- tf
[discord-api-types] Branch refactor/rename-duplicate-error-code was force-pushed to `b5c63a8`
[discord-api-types] Branch refactor/rename-duplicate-error-code was force-pushed to `6e97642`
Lets add that as a REST response type. For the negation enum....sure why not
Added a new interface APIMessageSearchIndexNotReadyResponse and enums for negated types.
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/multi-dc894274ce
b06b2ae chore(deps): bump picomatch in /website - dependabot[bot]
Bumps and picomatch. These dependencies needed to be updated together.
Updates picomatch from 2.3.1 to 2.3.2
Release notes
Sourced from picomatch's releases.
2.3.2
This is a security release fixing several security relevant issues.
What's Changed
fix: exception when glob pattern contains constructor by @โJason3S in micromatch/picomatch#144
Fix for CVE-2026-33671
Fix for CVE-2026-33672
Full Changelog: https://github.com/micromatch/picomatch/com...
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/picomatch-2.3.2
b95ac37 chore(deps): bump picomatch from 2.3.1 to 2.3.2 - dependabot[bot]
Bumps picomatch from 2.3.1 to 2.3.2.
Release notes
Sourced from picomatch's releases.
2.3.2
This is a security release fixing several security relevant issues.
What's Changed
fix: exception when glob pattern contains constructor by @โJason3S in micromatch/picomatch#144
Fix for CVE-2026-33671
Fix for CVE-2026-33672
Full Changelog: https://github.com/micromatch/picomatch/compare/2.3.1...2.3.2
Changelog
Sourced from picomatch's changelog.
Releas...
Looks like these dependencies are no longer updatable, so this is no longer needed.
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/node-forge-1.4.0
f7574cd chore(deps): bump node-forge from 1.3.3 to 1.4.... - dependabot[bot]
Bumps node-forge from 1.3.3 to 1.4.0.
Changelog
Sourced from node-forge's changelog.
1.4.0 - 2026-03-24
Security
HIGH: Denial of Service in BigInteger.modInverse()
A Denial of Service (DoS) vulnerability exists due to an infinite loop in
the BigInteger.modInverse() function (inherited from the bundled jsbn
library). When modInverse() is called with a zero value as input, the
internal Extended Euclidean Algorithm enters an unreachable exit conditio...
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/handlebars-4.7.9
0475f32 chore(deps): bump handlebars from 4.7.8 to 4.7.9 - dependabot[bot]
Bumps handlebars from 4.7.8 to 4.7.9.
Release notes
Sourced from handlebars's releases.
v4.7.9
fix: enable shell mode for spawn to resolve Windows EINVAL issue - e0137c2
fix type "RuntimeOptions" also accepting string partials - eab1d14
feat(types): set hash to be a Record<string, any> - de4414d
fix non-contiguous program indices - 4512766
refactor: rename i to startPartIndex - e497a35
security: fix security issues - 68d8d...
[discord-api-types] Branch dependabot/npm_and_yarn/picomatch-2.3.2 was force-pushed to `e2feb77`
c5aa81d chore(deps): lock file maintenance (#1597) - renovate[bot]
1c72289 chore(deps): update actions/create-github-app-t... - renovate[bot]
b63fafd chore(deps): bump picomatch from 2.3.1 to 2.3.2... - dependabot[bot]
96a34ba chore(deps): bump handlebars from 4.7.8 to 4.7.... - dependabot[bot]
3bc73f8 chore(deps): bump node-forge from 1.3.3 to 1.4.... - dependabot[bot]
0f26fd4 fix: compile errors - vladfrangu
ca423b0 chore(deps): update dependency typescript to v6... - renovate[bot]
308308d chore: forgot to update tsconfig with types - vladfrangu
[discordjs/discord-api-types] New branch created: chore/pnpm-migration
8d1cc2f chore: pnpm migration - vladfrangu
Please describe the changes this PR makes and why it should be merged:
Yolo ig
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
[discordjs/discord-api-types] New branch created: docs/codeblock-everyone
77c3dad docs: wrap everyone mention in codeblock - almeidx
/Users/cyph/source/repos/discord-api-types/rest/v10/guild.ts:619:46 - [warning] Encountered an unknown block tag @everyone
619 * Filter messages that do or do not mention @everyone
/Users/cyph/source/repos/discord-api-types/rest/v9/guild.ts:619:46 - [warning] Encountered an unknown block tag @everyone
619 * Filter messages that do or do not mention @everyone
[discord-api-types] Branch chore/pnpm-migration was force-pushed to `fe9a2e8`
[discord-api-types] Branch chore/pnpm-migration was force-pushed to `6e74374`
One of the most crucial steps is installing dependencies via `pnpm install --frozen-lockfile`. This ensures that linting can be done, and
$ pnpm install --frozen-lockfile # Install the dependencies of the project
1. Install dependencies with `pnpm install --frozen-lockfile`.
54b5c29 Apply suggestions from code review - almeidx
2de2dca fixup! Apply suggestions from code review - almeidx
5725f26 Apply suggestions from code review - vladfrangu
0a514f6 docs: wrap @everyone mention in codeblock (#1... - almeidx
[discordjs/discord-api-types] New branch created: chore/release/0.38.43
75d375a chore(release): 0.38.43 ๐ - github-actions[bot]
d0ff0d2 chore(deps): bump path-to-regexp from 0.1.12 to... - dependabot[bot]
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/path-to-regexp-0.1.13
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/multi-57404e07ab
300161f chore(deps): bump brace-expansion in /website - dependabot[bot]
Bumps path-to-regexp from 0.1.12 to 0.1.13.
Release notes
Sourced from path-to-regexp's releases.
0.1.13
Important
Fix CVE-2026-4867 (GHSA-37ch-88jc-xwx2)
Full Changelog: https://github.com/pillarjs/path-to-regexp/compare/v0.1.12...v.0.1.13
Changelog
Sourced from path-to-regexp's changelog.
0.1.13 / 2026-03-26
Fix CVE-2026-4867 (GHSA-37ch-88jc-xwx2)
0.1.7 / 2015-07-28
Fixed regression with escaped round brackets and matching groups.
0....
Bumps and brace-expansion. These dependencies needed to be updated together.
Updates brace-expansion from 1.1.12 to 1.1.13
Commits
6c353ca 1.1.13
7fd684f Backport fix for GHSA-f886-m6hf-6m8v (#95)
See full diff in compare view
Updates brace-expansion from 2.0.2 to 2.0.3
Commits
6c353ca 1.1.13
7fd684f Backport fix for GHSA-f886-m6hf-6m8v (#95)
See full diff in compare view
Dependabot will resolve any conflicts with this PR as...
[discordjs/discord-api-types] New branch created: chore/release/0.38.43
96c0b70 chore(release): 0.38.43 ๐ - github-actions[bot]
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.41 to 0.38.43.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
afe009d chore(release): 0.38.43 ๐ (#1602) - discord-js-bot[bot]
[discordjs/discord-api-types] New tag created: 0.38.43
[discordjs/discord-api-types] New branch created: fix/app-event-webhook-status-optionality
90e446a fix(APIApplication): make event_webhooks_status... - almeidx
Please describe the changes this PR makes and why it should be merged:
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
[discordjs/discord-api-types] New branch created: feat/deprecate-active-developer-user-flag
63c90e8 feat(UserFlags): mark ActiveDeveloper as deprec... - almeidx
Please describe the changes this PR makes and why it should be merged:
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
Actually, it might be worth linking https://support-dev.discord.com/hc/articles/10113997751447 instead. That pull request reiterates what this documentation string does and provides no other useful information.
e4ecbb1 docs: requested changes - almeidx
c76a1bc fix(APIApplication): make event_webhooks_status... - almeidx
763bfc8 chore(deps): bump brace-expansion in /website (... - dependabot[bot]
ae75ee7 chore(deps): bump path-to-regexp from 0.1.12 to... - dependabot[bot]
[discordjs/discord-api-types] New branch created: chore/release/0.38.44
2d3adeb chore(release): 0.38.44 ๐ - github-actions[bot]
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.43 to 0.38.44.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
6a29982 chore(release): 0.38.44 ๐ (#1605) - discord-js-bot[bot]
[discordjs/discord-api-types] New tag created: 0.38.44
Please describe the changes this PR makes and why it should be merged:
Add more attachment and embed flags and fields
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
To match v10 ๐
* @deprecated Use {@link APIEmbedImage} instead.
* This attachment has been edited using the remix feature on mobile
Since you updated other links, might as well update this one too since it doesn't work
* @see {@link https://docs.discord.com/developers/resources/message#attachment-object-attachment-flags}
Needs updating on v9 too
If this actually exists, we should add @unstable since it's neither documented nor on the spec.
Otherwise, we should remove it.
This is the @deprecated tag's job
* This attachment has been edited using the remix feature on mobile
Needs updating on v9 too
This field has both asterisks
* @remarks This field is ignored and provided by the API as part of the response.
* @remarks Only present if the media item was uploaded as an attachment.
[discordjs/discord-api-types] New branch created: fix/oauth2-current-app-flags
a3b1da1 fix(OAuth2): include flags in current applicati... - almeidx
Please describe the changes this PR makes and why it should be merged:
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
[discordjs/discord-api-types] New branch created: fix/webhook-delete-query
1880ee2 fix(Webhook): add delete message query, fix thr... - almeidx
Please describe the changes this PR makes and why it should be merged:
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
[discordjs/discord-api-types] New branch created: fix/user-dm-recipient-snowflake
6f71719 fix(User): use Snowflake for DM recipient_id - almeidx
[discord-api-types] Branch fix/webhook-delete-query was force-pushed to `1db6101`
[discordjs/discord-api-types] New branch created: fix/reaction-type-burst
9f76d47 fix(Channel): rename ReactionType.Super to Burst - almeidx
[discordjs/discord-api-types] New branch created: fix/scheduled-event-dispatch-ref
e369dc3 fix(Gateway): correct scheduled event user remo... - almeidx
[discordjs/discord-api-types] New branch created: fix/forum-form-data-applied-tags
c494351 fix(Channel): add applied_tags to forum thread ... - almeidx
[discordjs/discord-api-types] New branch created: fix/team-member-user-partial
213cb16 fix(Teams): use partial user type on team member - almeidx
The docs specify that the user field on team members is a partial user object containing only avatar, discriminator, id, and username.
https://docs.discord.com/developers/topics/teams#data-models-team-member-object
I get this:
{
"id": "618976181026422814",
"username": "jiralite",
"global_name": "Jiralite",
"avatar": "228e9f0be121b4fba276c10f2ca5479b",
"avatar_decoration_data": null,
"collectibles": null,
"discriminator": "0",
"display_name_styles": null,
"public_flags": 16640,
"primary_guild": null,
"clan": null
}
Seems a lot more than just the avatar, discriminator, and id? The API specification says it's a user response too: https://github.com/...
1506ff0 fix(OAuth2): include flags in current applicati... - almeidx
3a296fa fix(User): use Snowflake for DM recipient_id (#... - almeidx
Unsure if this is related, but on https://discord.js.org/docs/packages/discord.js/main/TextChannel:Class#type
clicking on ChannelType.GuildText on the type property leads to the 404, as seen. Searching across the discord-api-types part of the docs also leads to some search results going to 404 (i.e., the aforementioned example).
No, this is about Discord's domain migration for their documentation. That should be something filed over at discordjs/discord.js.
Why does it say "The user's username, not unique across the platform"? is it just outdated? because usernames should be unique now
Bots still use the "old" system, thus its not unique. If you checked that discriminator is "0" maybe though (ie the username + discrim pair).
Also the description is from Discord's docs: https://docs.discord.com/developers/resources/user#user-object
<sub>(+ alot of things dealing with uniqueness should consider using ID instead)</sub>
Bots still use the "old" system, thus its not unique. If you checked that discriminator is "0" maybe though (ie the username + discrim pair).
Also the description is from Discord's docs: https://docs.discord.com/developers/resources/user#user-object
<sub>(+ alot of things dealing with uniqueness should consider using ID instead)</sub>
Please describe the changes this PR makes and why it should be merged:
Update description for attachments to clarify the behavior of embeds and components
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
487c3b7 docs(Message): update description for `attachme... - kshitijanurag
a479230 fix(Channel): narrow thread creation message an... - almeidx
[discordjs/discord-api-types] New branch created: fix/thread-result-types
This is wrong and apparently has been for a while: Returns a [channel](https://docs.discord.com/developers/resources/channel#channel-object), with a nested [message](https://docs.discord.com/developers/resources/message#message-object) object
[discordjs/discord-api-types] New branch created: chore/release/0.38.45
0ceb5a2 chore(release): 0.38.45 ๐ - github-actions[bot]
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.44 to 0.38.45.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
2802117 chore(release): 0.38.45 ๐ (#1620) - discord-js-bot[bot]
[discordjs/discord-api-types] New tag created: 0.38.45
19d04c0 fix(Channel): add applied_tags to forum thread ... - almeidx
b2a8b74 fix(Gateway): correct scheduled event user remo... - almeidx
c21ae24 fix(ReactionType): rename Super to Burst (#1613) - almeidx
27ef064 fix(Webhook): add delete message query, fix thr... - almeidx
702e541 feat(Message): more attachment and embed fields... - kshitijanurag
d165766 fix: APIUser global_name description (#1586) - kshitijanurag
5acf5c5 feat(UserFlags): mark ActiveDeveloper as deprec... - almeidx
[discord-api-types] Branch fix/thread-result-types was force-pushed to `e6b00a9`
[discord-api-types] Branch fix/thread-result-types was force-pushed to `2d7bc61`
[discord-api-types] Branch fix/thread-result-types was force-pushed to `1ee9fb3`
[discord-api-types] Branch fix/thread-result-types was force-pushed to `0c3830e`
09830f5 chore(release): 0.38.46 ๐ - github-actions[bot]
[discordjs/discord-api-types] New branch created: chore/release/0.38.46
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.45 to 0.38.46.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
3691d77 chore(release): 0.38.46 ๐ (#1624) - discord-js-bot[bot]
[discordjs/discord-api-types] New tag created: 0.38.46
[discordjs/discord-api-types] New branch created: fix/permissions-change
671b2fe fix(APITeamMember): missing permissions - Jiralite
At or before 2026-04-14, Discord stopped sending this field.
I have not opted to remove the field, but would be open to it since this is supposed to mirror the Discord API.
Please describe the changes this PR makes and why it should be merged:
Update wording in mention_channels description.
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
[discordjs/discord-api-types] New branch created: feat/deprecate-ChannelSendRateLimit
1634bf6 feat(RESTJSONErrorCodes): deprecate ChannelSend... - almeidx
Please describe the changes this PR makes and why it should be merged:
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
907b3df feat(RESTJSONErrorCodes): add forward unreadabl... - almeidx
[discordjs/discord-api-types] New branch created: feat/forward-message-error-code
Please describe the changes this PR makes and why it should be merged:
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
Please describe the changes this PR makes and why it should be merged:
The error message for JSON error code 20029 is "The write action you are performing on the server has hit the write rate limit" so I think it is more appropriate to rename it to ServerWriteRateLimit similar to https://github.com/discordjs/discord-api-types/pull/1627
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/follow-redirects-1.16.0
16b9bb7 chore(deps): bump follow-redirects from 1.15.11... - dependabot[bot]
Bumps follow-redirects from 1.15.11 to 1.16.0.
Commits
0c23a22 Release version 1.16.0 of the npm package.
844c4d3 Add sensitiveHeaders option.
5e8b8d0 ci: add Node.js 24.x to the CI matrix
7953e22 ci: upgrade GitHub Actions to use setup-node@v6 and checkout@v6
86dc1f8 Sanitizing input.
See full diff in compare view
[)[] (allows known fields and random strings)
Also adapt the type to the route name change
0bd00dd refactor(RESTJSONErrorCodes): rename `ServerSen... - kshitijanurag
d3ce78d chore(release): 0.38.47 ๐ - github-actions[bot]
[discordjs/discord-api-types] New branch created: chore/release/0.38.47
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.46 to 0.38.47.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
2e5e31b chore(release): 0.38.47 ๐ (#1632) - discord-js-bot[bot]
[discordjs/discord-api-types] New tag created: 0.38.47
Should be guild_id: Snowflake
Should be https://docs.discord.com/developers/events/gateway-events#request-channel-info
Let's use undefined instead, since this endpoint returns 204 and https://github.com/discordjs/discord-api-types/pull/1526
Please describe the changes this PR makes and why it should be merged:
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
It's not explicitly documented, but I think its implied that it's only possible to be a text channel.
[discord-api-types] Branch dependabot/npm_and_yarn/website/follow-redirects-1.16.0 was force-pushed to `043a74f`
Please describe the changes this PR makes and why it should be merged:
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
Please describe the changes this PR makes and why it should be merged:
Add identify.premium OAuth2 Scope
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
Can you add a remark or something like that to the premium_type field on the user type that it will be 0 without this scope?
Can you add a remark or something like that to the
premium_typefield on the user type that it will be0without this scope?
Sure, will add a remark.
Please describe the changes this PR makes and why it should be merged:
Add documentation for deleting user application role connection using userApplicationRoleConnection() route.
If applicable, please reference Discord API Docs PRs or commits that influenced this PR:
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/fast-xml-builder-1.2.0
b16f7c8 chore(deps): bump fast-xml-builder from 1.1.5 t... - dependabot[bot]
Bumps fast-xml-builder from 1.1.5 to 1.2.0.
Changelog
Sourced from fast-xml-builder's changelog.
1.2.0 (2026-05-08)
Add support for sanitizeName option
Support xml-naming for validating and sanitizing tag and attribute names
1.1.9 (2026-05-06)
fix: format output for preserve order when indent by is set to empty string
1.1.8 (2026-05-05)
fix: skip text property for PI tags
improve typings
1.1.7 (2026--05-04)
fix security issue...
Looks like fast-xml-builder is up-to-date now, so this is no longer needed.
Looks like follow-redirects is no longer updatable, so this is no longer needed.
[discordjs/discord-api-types] New branch created: dependabot/npm_and_yarn/website/babel/plugin-transform-modules-systemjs-7.29.4
4081e11 chore(deps): bump @babel/plugin-transform-modul... - dependabot[bot]
Bumps @babel/plugin-transform-modules-systemjs from 7.25.9 to 7.29.4.
Release notes
Sourced from @โbabel/plugin-transform-modules-systemjs's releases.
v7.29.4 (2026-05-05)
:bug: Bug Fix
babel-plugin-transform-modules-systemjs
#17974 [7.x backport]fix(systemjs): improve module string name support (@โJLHwung)
Committers: 1
Huรกng Jรนnliร ng (@โJLHwung)
v7.29.3 (2026-04-30)
:eyeglasses: Spec Compli...
Which package is this bug report for?
discord.js
Issue description
Reopening discordjs/discord.js#11126.
This permission is now included in Discord's documentation, so it should be added to PermissionFlagsBits.
Versions
discord.js 14.26.4
bun 1.3.13
tsc 5.9.3
Issue priority
Low (slightly annoying)
Which partials do you have configured?
...
Can you add the return type to rest/v10/user.ts (and v9) too? Seems like it would be undefined
f38c221 chore(deps): update dependency npm-run-all2 to ... - renovate[bot]
60b49bc feat(Routes): add DELETE method for `userAppl... - kshitijanurag
34615f7 chore(deps): bump qs and express in /website (#... - dependabot[bot]
[discord-api-types] Branch dependabot/npm_and_yarn/website/babel/plugin-transform-modules-systemjs-7.29.4 was force-pushed to `bbbd550`
[discord-api-types] Branch dependabot/npm_and_yarn/website/fast-uri-3.1.2 was force-pushed to `0f9ab2f`
5be1ad2 chore(deps): update pnpm/action-setup action to... - renovate[bot]
bd7f4b6 feat(OAuth2Scopes): add IdentifyPremium scope... - kshitijanurag
22b7320 feat(OAuth2): add integration_type param (#1643) - RiskyMH
32ee7cb docs(Message): update wording in `mention_chann... - kshitijanurag
1f79ad4 chore(deps): update dependency lint-staged to v... - renovate[bot]
a4ca66e chore(deps): bump @babel/plugin-transform-modul... - dependabot[bot]
36aaff3 chore(deps): bump fast-uri from 3.0.3 to 3.1.2 ... - dependabot[bot]
7989125 chore(deps): update dependency @actions/glob to... - renovate[bot]
23bb0e8 chore(deps): update commitlint monorepo to v21 ... - renovate[bot]
[discordjs/discord-api-types] New branch created: chore/release/0.38.48
a21127c chore(release): 0.38.48 ๐ - github-actions[bot]
Please describe the changes this PR makes and why it should be merged:
This pull request bumps discord-api-types from 0.38.47 to 0.38.48.
โ ๏ธ Do not change the commit message when merging. It must stay in the format chore(release): ...!
โ ๏ธ Maintainers, make sure everything is alright in this PR before merging it. This is still a beta test, so things may break.
f690ee1 chore(release): 0.38.48 ๐ (#1667) - discord-js-bot[bot]
[discordjs/discord-api-types] New tag created: 0.38.48