Compare commits

..

1 Commits

Author SHA1 Message Date
Jiralite
671b2fed05 fix(APITeamMember): missing permissions 2026-04-14 14:07:06 +01:00
19 changed files with 2027 additions and 1284 deletions

File diff suppressed because one or more lines are too long

View File

@@ -2,7 +2,7 @@ enableGlobalCache: true
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.15.0.cjs
yarnPath: .yarn/releases/yarn-4.13.0.cjs
plugins:
- path: ./.yarn/plugins/postinstallDev.cjs

View File

@@ -1,11 +1,3 @@
## [0.38.47](https://github.com/discordjs/discord-api-types/compare/0.38.46...0.38.47) (2026-04-16)
### Features
* **RESTJSONErrorCodes:** add `CannotForwardMessageWithUnreadableContent` ([#1628](https://github.com/discordjs/discord-api-types/issues/1628)) ([09c71fe](https://github.com/discordjs/discord-api-types/commit/09c71fe9d19006d0b287be35456c25809e9afc1a))
* **RESTJSONErrorCodes:** rename `ChannelSendRateLimit` to `ChannelWriteRateLimit` ([#1627](https://github.com/discordjs/discord-api-types/issues/1627)) ([d5dc47a](https://github.com/discordjs/discord-api-types/commit/d5dc47a36c544ff8a83adcfb29684d5ac5e15af4))
## [0.38.46](https://github.com/discordjs/discord-api-types/compare/0.38.45...0.38.46) (2026-04-13)

8
deno/CHANGELOG.md generated
View File

@@ -1,11 +1,3 @@
## [0.38.47](https://github.com/discordjs/discord-api-types/compare/0.38.46...0.38.47) (2026-04-16)
### Features
* **RESTJSONErrorCodes:** add `CannotForwardMessageWithUnreadableContent` ([#1628](https://github.com/discordjs/discord-api-types/issues/1628)) ([09c71fe](https://github.com/discordjs/discord-api-types/commit/09c71fe9d19006d0b287be35456c25809e9afc1a))
* **RESTJSONErrorCodes:** rename `ChannelSendRateLimit` to `ChannelWriteRateLimit` ([#1627](https://github.com/discordjs/discord-api-types/issues/1627)) ([d5dc47a](https://github.com/discordjs/discord-api-types/commit/d5dc47a36c544ff8a83adcfb29684d5ac5e15af4))
## [0.38.46](https://github.com/discordjs/discord-api-types/compare/0.38.45...0.38.46) (2026-04-13)

View File

@@ -44,9 +44,10 @@ export interface APITeamMember {
/**
* Will always be `["*"]`
*
* @remarks At or before 2026-04-14, Discord stopped sending this field.
* @deprecated Use {@link APITeamMember.role} instead.
*/
permissions: ['*'];
permissions?: ['*'] | undefined;
/**
* The id of the parent team of which they are a member
*/

View File

@@ -44,9 +44,10 @@ export interface APITeamMember {
/**
* Will always be `["*"]`
*
* @remarks At or before 2026-04-14, Discord stopped sending this field.
* @deprecated Use {@link APITeamMember.role} instead.
*/
permissions: ['*'];
permissions?: ['*'] | undefined;
/**
* The id of the parent team of which they are a member
*/

14
deno/rest/common.ts generated
View File

@@ -75,16 +75,8 @@ export enum RESTJSONErrorCodes {
UnderMinimumAge = 20_024,
ChannelWriteRateLimit = 20_028,
/**
* @deprecated Use {@link RESTJSONErrorCodes.ChannelWriteRateLimit} instead
*/
ChannelSendRateLimit = ChannelWriteRateLimit,
ServerWriteRateLimit = 20_029,
/**
* @deprecated Use {@link RESTJSONErrorCodes.ServerWriteRateLimit} instead
*/
ServerSendRateLimit = ServerWriteRateLimit,
ChannelSendRateLimit = 20_028,
ServerSendRateLimit,
StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords = 20_031,
@@ -309,8 +301,6 @@ export enum RESTJSONErrorCodes {
MaximumActiveThreads,
MaximumActiveAnnouncementThreads,
CannotForwardMessageWithUnreadableContent = 160_014,
InvalidJSONForUploadedLottieFile = 170_001,
UploadedLottiesCannotContainRasterizedImages,
StickerMaximumFramerateExceeded,

View File

@@ -1,6 +1,6 @@
{
"name": "discord-api-types",
"version": "0.38.47",
"version": "0.38.46",
"description": "Discord API typings that are kept up to date for use in bot library creation.",
"homepage": "https://discord-api-types.dev",
"workspaces": [
@@ -207,9 +207,9 @@
]
}
},
"packageManager": "yarn@4.15.0",
"packageManager": "yarn@4.13.0",
"volta": {
"node": "24.16.0",
"yarn": "4.15.0"
"node": "24.14.1",
"yarn": "4.13.0"
}
}

View File

@@ -44,9 +44,10 @@ export interface APITeamMember {
/**
* Will always be `["*"]`
*
* @remarks At or before 2026-04-14, Discord stopped sending this field.
* @deprecated Use {@link APITeamMember.role} instead.
*/
permissions: ['*'];
permissions?: ['*'] | undefined;
/**
* The id of the parent team of which they are a member
*/

View File

@@ -44,9 +44,10 @@ export interface APITeamMember {
/**
* Will always be `["*"]`
*
* @remarks At or before 2026-04-14, Discord stopped sending this field.
* @deprecated Use {@link APITeamMember.role} instead.
*/
permissions: ['*'];
permissions?: ['*'] | undefined;
/**
* The id of the parent team of which they are a member
*/

View File

@@ -75,16 +75,8 @@ export enum RESTJSONErrorCodes {
UnderMinimumAge = 20_024,
ChannelWriteRateLimit = 20_028,
/**
* @deprecated Use {@link RESTJSONErrorCodes.ChannelWriteRateLimit} instead
*/
ChannelSendRateLimit = ChannelWriteRateLimit,
ServerWriteRateLimit = 20_029,
/**
* @deprecated Use {@link RESTJSONErrorCodes.ServerWriteRateLimit} instead
*/
ServerSendRateLimit = ServerWriteRateLimit,
ChannelSendRateLimit = 20_028,
ServerSendRateLimit,
StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords = 20_031,
@@ -309,8 +301,6 @@ export enum RESTJSONErrorCodes {
MaximumActiveThreads,
MaximumActiveAnnouncementThreads,
CannotForwardMessageWithUnreadableContent = 160_014,
InvalidJSONForUploadedLottieFile = 170_001,
UploadedLottiesCannotContainRasterizedImages,
StickerMaximumFramerateExceeded,

View File

@@ -1 +1 @@
[{"entryPoints":{"v10":{"path":"v10.ts","label":"API v10"},"v9":{"path":"v9.ts","label":"API v9"},"voice/v4":{"path":"voice/v4.ts","label":"Voice v4"},"voice/v8":{"path":"voice/v8.ts","label":"Voice v8"},"globals":{"path":"globals.ts","label":"Global Types"}},"packageRoot":"/home/runner/work/discord-api-types/discord-api-types/","packagePath":"./","packageSlug":"discord-api-types","packageName":"discord-api-types","packageVersion":"0.38.47"}]
[{"entryPoints":{"v10":{"path":"v10.ts","label":"API v10"},"v9":{"path":"v9.ts","label":"API v9"},"voice/v4":{"path":"voice/v4.ts","label":"Voice v4"},"voice/v8":{"path":"voice/v8.ts","label":"Voice v8"},"globals":{"path":"globals.ts","label":"Global Types"}},"packageRoot":"/home/runner/work/discord-api-types/discord-api-types/","packagePath":"./","packageSlug":"discord-api-types","packageName":"discord-api-types","packageVersion":"0.38.46"}]

View File

@@ -1,3 +1,3 @@
[
"0.38.47"
"0.38.46"
]

2655
yarn.lock

File diff suppressed because it is too large Load Diff