From 26556390a3800e954974a00c1328ff47d3e67e9a Mon Sep 17 00:00:00 2001 From: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com> Date: Thu, 28 Jul 2022 14:24:07 -0400 Subject: [PATCH] fix: use proper format for `@link` text (#8384) fix(collection): use proper format for link text --- packages/builders/src/messages/formatters.ts | 2 +- packages/collection/src/collection.ts | 28 ++++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/builders/src/messages/formatters.ts b/packages/builders/src/messages/formatters.ts index e4cd2f0b87ca..e5bf6dfd0969 100644 --- a/packages/builders/src/messages/formatters.ts +++ b/packages/builders/src/messages/formatters.ts @@ -245,7 +245,7 @@ export function time(timeOrSeconds?: number | Date, style?: TimestampStylesStrin } /** - * The {@link https://discord.com/developers/docs/reference#message-formatting-timestamp-styles message formatting timestamp styles} supported by Discord + * The {@link https://discord.com/developers/docs/reference#message-formatting-timestamp-styles | message formatting timestamp styles} supported by Discord */ export const TimestampStyles = { /** diff --git a/packages/collection/src/collection.ts b/packages/collection/src/collection.ts index ee4fb0f3cd35..d50ecfe34a34 100644 --- a/packages/collection/src/collection.ts +++ b/packages/collection/src/collection.ts @@ -145,7 +145,7 @@ export class Collection extends Map { } /** - * Identical to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at Array.at()}. + * Identical to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at | Array.at()}. * Returns the item at a given index, allowing for positive and negative integers. * Negative integers count back from the last item in the collection. * @@ -158,7 +158,7 @@ export class Collection extends Map { } /** - * Identical to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at Array.at()}. + * Identical to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at | Array.at()}. * Returns the key at a given index, allowing for positive and negative integers. * Negative integers count back from the last item in the collection. * @@ -209,7 +209,7 @@ export class Collection extends Map { } /** - * Identical to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse Array.reverse()} + * Identical to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse | Array.reverse()} * but returns a Collection instead of an Array. */ public reverse() { @@ -221,10 +221,10 @@ export class Collection extends Map { /** * Searches for a single item where the given function returns a truthy value. This behaves like - * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find Array.find()}. + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find | Array.find()}. * All collections used in Discord.js are mapped using their `id` property, and if you want to find by id you * should use the `get` method. See - * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/get MDN} for details. + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/get | MDN} for details. * * @param fn - The function to test with (should return boolean) * @param thisArg - Value to use as `this` when executing function @@ -250,7 +250,7 @@ export class Collection extends Map { /** * Searches for the key of a single item where the given function returns a truthy value. This behaves like - * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex Array.findIndex()}, + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex | Array.findIndex()}, * but returns the key rather than the positional index. * * @param fn - The function to test with (should return boolean) @@ -297,7 +297,7 @@ export class Collection extends Map { /** * Identical to - * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter Array.filter()}, + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter | Array.filter()}, * but returns a Collection instead of an Array. * * @param fn - The function to test with (should return boolean) @@ -379,7 +379,7 @@ export class Collection extends Map { /** * Maps each item into a Collection, then joins the results into a single Collection. Identical in behavior to - * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap Array.flatMap()}. + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap | Array.flatMap()}. * * @param fn - Function that produces a new Collection * @param thisArg - Value to use as `this` when executing function @@ -399,7 +399,7 @@ export class Collection extends Map { /** * Maps each item to another value into an array. Identical in behavior to - * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map Array.map()}. + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map | Array.map()}. * * @param fn - Function that produces an element of the new array, taking three arguments * @param thisArg - Value to use as `this` when executing function @@ -423,7 +423,7 @@ export class Collection extends Map { /** * Maps each item to another value into a collection. Identical in behavior to - * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map Array.map()}. + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map | Array.map()}. * * @param fn - Function that produces an element of the new collection, taking three arguments * @param thisArg - Value to use as `this` when executing function @@ -443,7 +443,7 @@ export class Collection extends Map { /** * Checks if there exists an item that passes a test. Identical in behavior to - * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some Array.some()}. + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some | Array.some()}. * * @param fn - Function used to test (should return a boolean) * @param thisArg - Value to use as `this` when executing function @@ -464,7 +464,7 @@ export class Collection extends Map { /** * Checks if all items passes a test. Identical in behavior to - * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every Array.every()}. + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every | Array.every()}. * * @param fn - Function used to test (should return a boolean) * @param thisArg - Value to use as `this` when executing function @@ -495,7 +495,7 @@ export class Collection extends Map { /** * Applies a function to produce a single value. Identical in behavior to - * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce Array.reduce()}. + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce | Array.reduce()}. * * @param fn - Function used to reduce, taking four arguments; `accumulator`, `currentValue`, `currentKey`, * and `collection` @@ -533,7 +533,7 @@ export class Collection extends Map { /** * Identical to - * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/forEach Map.forEach()}, + * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/forEach | Map.forEach()}, * but returns the collection instead of undefined. * * @param fn - Function to execute for each element