build: Update discord-api-types to 0.38.23 (#11095)

build: update
This commit is contained in:
Jiralite
2025-09-10 12:30:00 +04:00
committed by GitHub
parent 352c9819b6
commit 5d5a6945e4
12 changed files with 32 additions and 30 deletions

View File

@@ -66,7 +66,7 @@
"funding": "https://github.com/discordjs/discord.js?sponsor",
"dependencies": {
"@discordjs/util": "workspace:^",
"discord-api-types": "^0.38.22",
"discord-api-types": "^0.38.23",
"ts-mixer": "^6.0.4",
"tslib": "^2.8.1",
"zod": "^4.0.17"

View File

@@ -49,6 +49,7 @@ export class LabelBuilder extends ComponentBuilder<APILabelComponent> {
this.data = {
...structuredClone(rest),
// @ts-expect-error https://github.com/discordjs/discord.js/pull/11078
component: component ? createComponentBuilder(component) : undefined,
type: ComponentType.Label,
};

View File

@@ -38,6 +38,7 @@ export class ModalBuilder implements JSONEncodable<APIModalInteractionResponseCa
this.data = {
...structuredClone(rest),
// @ts-expect-error https://github.com/discordjs/discord.js/pull/11078
components: components.map((component) => createComponentBuilder(component)),
};
}