mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
fix: fixed TS 4.8 compatibility (#8601)
This commit is contained in:
7
typings/index.d.ts
vendored
7
typings/index.d.ts
vendored
@@ -9,7 +9,6 @@ import {
|
||||
hyperlink,
|
||||
inlineCode,
|
||||
italic,
|
||||
JSONEncodable,
|
||||
quote,
|
||||
roleMention,
|
||||
SlashCommandBuilder,
|
||||
@@ -24,14 +23,11 @@ import {
|
||||
import { Collection } from '@discordjs/collection';
|
||||
import {
|
||||
APIActionRowComponent,
|
||||
APIActionRowComponentTypes,
|
||||
APIApplicationCommand,
|
||||
APIApplicationCommandInteractionData,
|
||||
APIApplicationCommandOption,
|
||||
APIApplicationCommandPermission,
|
||||
APIAuditLogChange,
|
||||
APIButtonComponent,
|
||||
APIChannel,
|
||||
APIEmbed,
|
||||
APIEmoji,
|
||||
APIInteractionDataResolvedChannel,
|
||||
@@ -48,7 +44,6 @@ import {
|
||||
APIRole,
|
||||
APISelectMenuComponent,
|
||||
APITemplateSerializedSourceGuild,
|
||||
APITextInputComponent,
|
||||
APIUser,
|
||||
GatewayVoiceServerUpdateDispatchData,
|
||||
GatewayVoiceStateUpdateDispatchData,
|
||||
@@ -1632,6 +1627,8 @@ export class MessageActionRow<
|
||||
? APIActionRowComponent<APIModalActionRowComponent>
|
||||
: APIActionRowComponent<APIMessageActionRowComponent>,
|
||||
> extends BaseMessageComponent {
|
||||
// @ts-ignore (TS:2344, Caused by TypeScript 4.8)
|
||||
// Fixed in DiscordJS >= 14.x / DiscordApiTypes >= 0.37.x, ignoring the type error here.
|
||||
public constructor(data?: MessageActionRow<T> | MessageActionRowOptions<U> | V);
|
||||
public type: 'ACTION_ROW';
|
||||
public components: T[];
|
||||
|
||||
Reference in New Issue
Block a user