mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
chore: deps
This commit is contained in:
@@ -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