Skip to content

Commit ac9e6ed

Browse files
committed
docs: add more @internals
1 parent eb4fb56 commit ac9e6ed

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/discord.js/typings/index.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3812,11 +3812,13 @@ export enum DiscordjsErrorCodes {
38123812
GuildForumMessageRequired = 'GuildForumMessageRequired',
38133813
}
38143814

3815+
/** @internal */
38153816
export interface DiscordjsErrorFields<Name extends string> {
38163817
readonly name: `${Name} [${DiscordjsErrorCodes}]`;
38173818
get code(): DiscordjsErrorCodes;
38183819
}
38193820

3821+
/** @internal */
38203822
export function DiscordjsErrorMixin<Entity, Name extends string>(
38213823
Base: Constructable<Entity>,
38223824
name: Name,
@@ -4365,10 +4367,13 @@ export class VoiceStateManager extends CachedManager<Snowflake, VoiceState, type
43654367
// to each of those classes
43664368

43674369
export type Constructable<Entity> = abstract new (...args: any[]) => Entity;
4370+
4371+
/** @internal */
43684372
export function PartialTextBasedChannel<Entity>(
43694373
Base?: Constructable<Entity>,
43704374
): Constructable<Entity & PartialTextBasedChannelFields<false>>;
43714375

4376+
/** @internal */
43724377
export function TextBasedChannelMixin<
43734378
Entity,
43744379
InGuild extends boolean = boolean,
@@ -4409,9 +4414,12 @@ export interface TextBasedChannelFields<InGuild extends boolean = boolean>
44094414
setNSFW(nsfw?: boolean, reason?: string): Promise<this>;
44104415
}
44114416

4417+
/** @internal */
44124418
export function PartialWebhookMixin<Entity>(Base?: Constructable<Entity>): Constructable<Entity & PartialWebhookFields>;
4419+
/** @internal */
44134420
export function WebhookMixin<Entity>(Base?: Constructable<Entity>): Constructable<Entity & WebhookFields>;
44144421

4422+
/** @internal */
44154423
export interface PartialWebhookFields {
44164424
id: Snowflake;
44174425
get url(): string;
@@ -4426,6 +4434,7 @@ export interface PartialWebhookFields {
44264434
): Promise<APIMessage | Message>;
44274435
}
44284436

4437+
/** @internal */
44294438
export interface WebhookFields extends PartialWebhookFields {
44304439
get createdAt(): Date;
44314440
get createdTimestamp(): number;

0 commit comments

Comments
 (0)