diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 7a294a70b73d..1141d4c11d1b 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -657,7 +657,7 @@ export class BaseGuildEmoji extends Emoji { } // tslint:disable-next-line no-empty-interface -export interface BaseGuildTextChannel extends TextBasedChannelFields, GuildChannel {} +export interface BaseGuildTextChannel extends TextBasedChannelFields {} export class BaseGuildTextChannel extends GuildChannel { protected constructor(guild: Guild, data?: RawGuildChannelData, client?: Client, immediatePatch?: boolean); public defaultAutoArchiveDuration?: ThreadAutoArchiveDuration; @@ -678,9 +678,7 @@ export class BaseGuildTextChannel extends GuildChannel { } // tslint:disable-next-line no-empty-interface -export interface BaseGuildVoiceChannel - extends Omit, 'lastPinTimestamp' | 'lastPinAt'>, - GuildChannel {} +export interface BaseGuildVoiceChannel extends Omit, 'lastPinTimestamp' | 'lastPinAt'> {} export class BaseGuildVoiceChannel extends GuildChannel { public constructor(guild: Guild, data?: RawGuildChannelData); public bitrate: number; @@ -1310,10 +1308,9 @@ export interface ResolvedFile { // tslint:disable-next-line no-empty-interface export interface DMChannel extends Omit< - TextBasedChannelFields, - 'bulkDelete' | 'fetchWebhooks' | 'createWebhook' | 'setRateLimitPerUser' | 'setNSFW' - >, - BaseChannel {} + TextBasedChannelFields, + 'bulkDelete' | 'fetchWebhooks' | 'createWebhook' | 'setRateLimitPerUser' | 'setNSFW' + > {} export class DMChannel extends BaseChannel { private constructor(client: Client, data?: RawDMChannelData); public flags: Readonly; @@ -1593,7 +1590,7 @@ export class GuildMemberFlagsBitField extends BitField { public static resolve(bit?: BitFieldResolvable): number; } -export interface GuildMember extends PartialTextBasedChannelFields, Base {} +export interface GuildMember extends PartialTextBasedChannelFields {} export class GuildMember extends Base { private constructor(client: Client, data: RawGuildMemberData, guild: Guild); private _roles: Snowflake[]; @@ -2499,18 +2496,17 @@ export interface DefaultReactionEmoji { export interface ThreadOnlyChannel extends Omit< - TextBasedChannelFields, - | 'send' - | 'lastMessage' - | 'lastPinAt' - | 'bulkDelete' - | 'sendTyping' - | 'createMessageCollector' - | 'awaitMessages' - | 'createMessageComponentCollector' - | 'awaitMessageComponent' - >, - GuildChannel {} + TextBasedChannelFields, + | 'send' + | 'lastMessage' + | 'lastPinAt' + | 'bulkDelete' + | 'sendTyping' + | 'createMessageCollector' + | 'awaitMessages' + | 'createMessageComponentCollector' + | 'awaitMessageComponent' + > {} export abstract class ThreadOnlyChannel extends GuildChannel { public type: ChannelType.GuildForum | ChannelType.GuildMedia; public threads: GuildForumThreadManager; @@ -3176,8 +3172,7 @@ export interface PrivateThreadChannel extends ThreadChannel { // tslint:disable-next-line no-empty-interface export interface ThreadChannel - extends Omit, 'fetchWebhooks' | 'createWebhook' | 'setNSFW'>, - BaseChannel {} + extends Omit, 'fetchWebhooks' | 'createWebhook' | 'setNSFW'> {} export class ThreadChannel extends BaseChannel { private constructor(guild: Guild, data?: RawThreadChannelData, client?: Client); public archived: boolean | null; @@ -3274,7 +3269,7 @@ export class Typing extends Base { } // tslint:disable-next-line no-empty-interface -export interface User extends PartialTextBasedChannelFields, Base {} +export interface User extends PartialTextBasedChannelFields {} export class User extends Base { protected constructor(client: Client, data: RawUserData); private _equals(user: APIUser): boolean;