mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +01:00
chore: deps
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
},
|
||||
"homepage": "https://discord.js.org",
|
||||
"dependencies": {
|
||||
"@sapphire/shapeshift": "^3.2.0",
|
||||
"@sapphire/shapeshift": "^3.4.1",
|
||||
"discord-api-types": "^0.33.5",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"ts-mixer": "^6.0.1",
|
||||
@@ -62,12 +62,13 @@
|
||||
"devDependencies": {
|
||||
"@discordjs/docgen": "workspace:^",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^1.8.3",
|
||||
"@microsoft/api-extractor": "^7.28.2",
|
||||
"@types/node": "^18.0.0",
|
||||
"eslint": "^8.18.0",
|
||||
"@favware/cliff-jumper": "^1.8.5",
|
||||
"@microsoft/api-extractor": "^7.28.3",
|
||||
"@types/node": "^18.0.3",
|
||||
"c8": "^7.11.3",
|
||||
"eslint": "^8.19.0",
|
||||
"prettier": "^2.7.1",
|
||||
"tsup": "^6.1.2",
|
||||
"tsup": "^6.1.3",
|
||||
"typescript": "^4.7.4",
|
||||
"vitest": "^0.17.0"
|
||||
},
|
||||
|
||||
@@ -43,7 +43,7 @@ export class SelectMenuBuilder extends UnsafeSelectMenuBuilder {
|
||||
...options.map((option) =>
|
||||
option instanceof UnsafeSelectMenuOptionBuilder
|
||||
? option
|
||||
: new UnsafeSelectMenuOptionBuilder(optionValidator.parse(option) as APISelectMenuOption),
|
||||
: new UnsafeSelectMenuOptionBuilder(optionValidator.parse(option) as unknown as APISelectMenuOption),
|
||||
),
|
||||
);
|
||||
return this;
|
||||
@@ -58,7 +58,7 @@ export class SelectMenuBuilder extends UnsafeSelectMenuBuilder {
|
||||
...options.map((option) =>
|
||||
option instanceof UnsafeSelectMenuOptionBuilder
|
||||
? option
|
||||
: new UnsafeSelectMenuOptionBuilder(optionValidator.parse(option) as APISelectMenuOption),
|
||||
: new UnsafeSelectMenuOptionBuilder(optionValidator.parse(option) as unknown as APISelectMenuOption),
|
||||
),
|
||||
);
|
||||
return this;
|
||||
|
||||
@@ -30,6 +30,7 @@ export class ApplicationCommandOptionChannelTypesMixin {
|
||||
Reflect.set(this, 'channel_types', []);
|
||||
}
|
||||
|
||||
// @ts-expect-error: Shapeshift TODO
|
||||
this.channel_types!.push(...channelTypesPredicate.parse(channelTypes));
|
||||
|
||||
return this;
|
||||
|
||||
@@ -69,12 +69,12 @@ export class EmbedBuilder extends UnsafeEmbedBuilder {
|
||||
|
||||
public override setImage(url: string | null): this {
|
||||
// Data assertions
|
||||
return super.setImage(imageURLPredicate.parse(url)!);
|
||||
return super.setImage(imageURLPredicate.parse(url));
|
||||
}
|
||||
|
||||
public override setThumbnail(url: string | null): this {
|
||||
// Data assertions
|
||||
return super.setThumbnail(imageURLPredicate.parse(url)!);
|
||||
return super.setThumbnail(imageURLPredicate.parse(url));
|
||||
}
|
||||
|
||||
public override setTimestamp(timestamp: number | Date | null = Date.now()): this {
|
||||
@@ -89,6 +89,6 @@ export class EmbedBuilder extends UnsafeEmbedBuilder {
|
||||
|
||||
public override setURL(url: string | null): this {
|
||||
// Data assertions
|
||||
return super.setURL(urlPredicate.parse(url)!);
|
||||
return super.setURL(urlPredicate.parse(url));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user