From ded5a56047894cfca460563049d1d6ab9f2ae418 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Fri, 17 Nov 2023 00:27:03 +0000 Subject: [PATCH] docs: add more `@internal`s --- packages/discord.js/typings/index.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index e83b6c8dd001..975578bd5469 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -3834,11 +3834,13 @@ export enum DiscordjsErrorCodes { GuildForumMessageRequired = 'GuildForumMessageRequired', } +/** @internal */ export interface DiscordjsErrorFields { readonly name: `${Name} [${DiscordjsErrorCodes}]`; get code(): DiscordjsErrorCodes; } +/** @internal */ export function DiscordjsErrorMixin( Base: Constructable, name: Name, @@ -4387,10 +4389,13 @@ export class VoiceStateManager extends CachedManager = abstract new (...args: any[]) => Entity; + +/** @internal */ export function PartialTextBasedChannel( Base?: Constructable, ): Constructable>; +/** @internal */ export function TextBasedChannelMixin< Entity, InGuild extends boolean = boolean, @@ -4431,9 +4436,12 @@ export interface TextBasedChannelFields setNSFW(nsfw?: boolean, reason?: string): Promise; } +/** @internal */ export function PartialWebhookMixin(Base?: Constructable): Constructable; +/** @internal */ export function WebhookMixin(Base?: Constructable): Constructable; +/** @internal */ export interface PartialWebhookFields { id: Snowflake; get url(): string; @@ -4448,6 +4456,7 @@ export interface PartialWebhookFields { ): Promise; } +/** @internal */ export interface WebhookFields extends PartialWebhookFields { get createdAt(): Date; get createdTimestamp(): number;