@@ -148,7 +148,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
148
148
}
149
149
150
150
/**
151
- * Identical to {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/at | Array.at()}.
151
+ * Identical to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/at | Array.at()}.
152
152
* Returns the item at a given index, allowing for positive and negative integers.
153
153
* Negative integers count back from the last item in the collection.
154
154
*
@@ -172,7 +172,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
172
172
}
173
173
174
174
/**
175
- * Identical to {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/at | Array.at()}.
175
+ * Identical to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/at | Array.at()}.
176
176
* Returns the key at a given index, allowing for positive and negative integers.
177
177
* Negative integers count back from the last item in the collection.
178
178
*
@@ -240,7 +240,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
240
240
}
241
241
242
242
/**
243
- * Identical to {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/reverse | Array.reverse()}
243
+ * Identical to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse | Array.reverse()}
244
244
* but returns a Collection instead of an Array.
245
245
*/
246
246
public reverse ( ) {
@@ -252,10 +252,10 @@ export class Collection<Key, Value> extends Map<Key, Value> {
252
252
253
253
/**
254
254
* Searches for a single item where the given function returns a truthy value. This behaves like
255
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/find | Array.find()}.
255
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/find | Array.find()}.
256
256
* All collections used in Discord.js are mapped using their `id` property, and if you want to find by id you
257
257
* should use the `get` method. See
258
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Map/get | MDN} for details.
258
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map/get | MDN} for details.
259
259
*
260
260
* @param fn - The function to test with (should return a boolean)
261
261
* @param thisArg - Value to use as `this` when executing the function
@@ -288,7 +288,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
288
288
289
289
/**
290
290
* Searches for the key of a single item where the given function returns a truthy value. This behaves like
291
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex | Array.findIndex()},
291
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex | Array.findIndex()},
292
292
* but returns the key rather than the positional index.
293
293
*
294
294
* @param fn - The function to test with (should return a boolean)
@@ -322,7 +322,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
322
322
323
323
/**
324
324
* Searches for a last item where the given function returns a truthy value. This behaves like
325
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/findLast | Array.findLast()}.
325
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/findLast | Array.findLast()}.
326
326
*
327
327
* @param fn - The function to test with (should return a boolean)
328
328
* @param thisArg - Value to use as `this` when executing the function
@@ -354,7 +354,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
354
354
355
355
/**
356
356
* Searches for the key of a last item where the given function returns a truthy value. This behaves like
357
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/findLastIndex | Array.findLastIndex()},
357
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/findLastIndex | Array.findLastIndex()},
358
358
* but returns the key rather than the positional index.
359
359
*
360
360
* @param fn - The function to test with (should return a boolean)
@@ -407,7 +407,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
407
407
408
408
/**
409
409
* Identical to
410
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/filter | Array.filter()},
410
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/filter | Array.filter()},
411
411
* but returns a Collection instead of an Array.
412
412
*
413
413
* @param fn - The function to test with (should return a boolean)
@@ -502,7 +502,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
502
502
503
503
/**
504
504
* Maps each item into a Collection, then joins the results into a single Collection. Identical in behavior to
505
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap | Array.flatMap()}.
505
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap | Array.flatMap()}.
506
506
*
507
507
* @param fn - Function that produces a new Collection
508
508
* @param thisArg - Value to use as `this` when executing the function
@@ -529,7 +529,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
529
529
530
530
/**
531
531
* Maps each item to another value into an array. Identical in behavior to
532
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/map | Array.map()}.
532
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/map | Array.map()}.
533
533
*
534
534
* @param fn - Function that produces an element of the new array, taking three arguments
535
535
* @param thisArg - Value to use as `this` when executing the function
@@ -559,7 +559,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
559
559
560
560
/**
561
561
* Maps each item to another value into a collection. Identical in behavior to
562
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/map | Array.map()}.
562
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/map | Array.map()}.
563
563
*
564
564
* @param fn - Function that produces an element of the new collection, taking three arguments
565
565
* @param thisArg - Value to use as `this` when executing the function
@@ -586,7 +586,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
586
586
587
587
/**
588
588
* Checks if there exists an item that passes a test. Identical in behavior to
589
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/some | Array.some()}.
589
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/some | Array.some()}.
590
590
*
591
591
* @param fn - Function used to test (should return a boolean)
592
592
* @param thisArg - Value to use as `this` when executing the function
@@ -609,7 +609,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
609
609
610
610
/**
611
611
* Checks if all items passes a test. Identical in behavior to
612
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/every | Array.every()}.
612
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/every | Array.every()}.
613
613
*
614
614
* @param fn - Function used to test (should return a boolean)
615
615
* @param thisArg - Value to use as `this` when executing the function
@@ -646,7 +646,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
646
646
647
647
/**
648
648
* Applies a function to produce a single value. Identical in behavior to
649
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/reduce | Array.reduce()}.
649
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce | Array.reduce()}.
650
650
*
651
651
* @param fn - Function used to reduce, taking four arguments; `accumulator`, `currentValue`, `currentKey`,
652
652
* and `collection`
@@ -688,7 +688,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
688
688
689
689
/**
690
690
* Applies a function to produce a single value. Identical in behavior to
691
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/reduceRight | Array.reduceRight()}.
691
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/reduceRight | Array.reduceRight()}.
692
692
*
693
693
* @param fn - Function used to reduce, taking four arguments; `accumulator`, `value`, `key`, and `collection`
694
694
* @param initialValue - Starting value for the accumulator
@@ -730,7 +730,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
730
730
731
731
/**
732
732
* Identical to
733
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Map/forEach | Map.forEach()},
733
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map/forEach | Map.forEach()},
734
734
* but returns the collection instead of undefined.
735
735
*
736
736
* @param fn - Function to execute for each element
@@ -832,7 +832,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
832
832
/**
833
833
* The sort method sorts the items of a collection in place and returns it.
834
834
* If a comparison function is not provided, the function sorts by element values, using the same stringwise comparison algorithm as
835
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/sort | Array.sort()}.
835
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/sort | Array.sort()}.
836
836
*
837
837
* @param compareFunction - Specifies a function that defines the sort order. The return value of this function should be negative if
838
838
* `a` comes before `b`, positive if `b` comes before `a`, or zero if `a` and `b` are considered equal.
@@ -1017,7 +1017,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
1017
1017
}
1018
1018
1019
1019
/**
1020
- * Identical to {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/toReversed | Array.toReversed()}
1020
+ * Identical to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/toReversed | Array.toReversed()}
1021
1021
* but returns a Collection instead of an Array.
1022
1022
*/
1023
1023
public toReversed ( ) {
@@ -1027,7 +1027,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
1027
1027
/**
1028
1028
* The toSorted method returns a shallow copy of the collection with the items sorted.
1029
1029
* If a comparison function is not provided, the function sorts by element values, using the same stringwise comparison algorithm as
1030
- * {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array/sort | Array.sort()}.
1030
+ * {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/sort | Array.sort()}.
1031
1031
*
1032
1032
* @param compareFunction - Specifies a function that defines the sort order. The return value of this function should be negative if
1033
1033
* `a` comes before `b`, positive if `b` comes before `a`, or zero if `a` and `b` are considered equal.
@@ -1089,7 +1089,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
1089
1089
}
1090
1090
1091
1091
/**
1092
- * Identical to {@link https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Map/groupBy | Map.groupBy()}
1092
+ * Identical to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map/groupBy | Map.groupBy()}
1093
1093
* but returns a Collection instead of a Map.
1094
1094
*/
1095
1095
public static override groupBy < Key , Item > (
0 commit comments