chore: bump dependencies (#11051)

* chore: bump dependencies

* build: bump discord-api-types to 0.38.22

* fix: fix builders

---------

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Almeida
2025-08-29 13:01:54 +01:00
committed by GitHub
parent cde757b7cb
commit cc43dadcae
41 changed files with 2494 additions and 2561 deletions

View File

@@ -182,6 +182,8 @@ export function createComponentBuilder(
return data;
}
// https://github.com/discordjs/discord.js/pull/11034
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
switch (data.type) {
case ComponentType.ActionRow:
return new ActionRowBuilder(data);
@@ -214,7 +216,6 @@ export function createComponentBuilder(
case ComponentType.Container:
return new ContainerBuilder(data);
default:
// @ts-expect-error This case can still occur if we get a newer unsupported component type
throw new Error(`Cannot properly serialize component type: ${data.type}`);
}
}