Skip to content

Commit ab6a694

Browse files
docs: remove hardcoded locale from links (#10794)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 12638cd commit ab6a694

File tree

12 files changed

+34
-34
lines changed

12 files changed

+34
-34
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Learn how to add code owners here:
2-
# https://help.github.com/en/articles/about-code-owners
2+
# https://help.github.com/articles/about-code-owners
33

44
* @iCrawl
55

.github/workflows/cleanup-cache.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
1+
# https://docs.github.com/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
22
name: Cleanup caches
33
on:
44
pull_request:

packages/builders/src/components/ActionRow.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export class ActionRowBuilder extends ComponentBuilder<APIActionRowComponent<API
297297
*
298298
* @remarks
299299
* This method behaves similarly
300-
* to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
300+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
301301
*
302302
* It's useful for modifying and adjusting order of the already-existing components of an action row.
303303
* @example

packages/builders/src/components/selectMenu/StringSelectMenu.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class StringSelectMenuBuilder extends BaseSelectMenuBuilder<APIStringSele
106106
*
107107
* @remarks
108108
* This method behaves similarly
109-
* to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice | Array.prototype.splice()}.
109+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/slice | Array.prototype.splice()}.
110110
* It's useful for modifying and adjusting the order of existing options.
111111
* @example
112112
* Remove the first option:

packages/builders/src/interactions/commands/chatInput/mixins/SharedChatInputCommandOptions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class SharedChatInputCommandOptions {
151151
*
152152
* @remarks
153153
* This method behaves similarly
154-
* to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
154+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
155155
*
156156
* It's useful for modifying and adjusting order of the already-existing options for this command.
157157
* @example

packages/builders/src/interactions/modals/Modal.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class ModalBuilder implements JSONEncodable<APIModalInteractionResponseCa
108108
*
109109
* @remarks
110110
* This method behaves similarly
111-
* to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
111+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
112112
* The maximum amount of action rows that can be added is 5.
113113
*
114114
* It's useful for modifying and adjusting order of the already-existing action rows of a modal.

packages/builders/src/messages/embed/Embed.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class EmbedBuilder implements JSONEncodable<APIEmbed> {
8787
*
8888
* @remarks
8989
* This method behaves similarly
90-
* to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
90+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
9191
* The maximum amount of fields that can be added is 25.
9292
*
9393
* It's useful for modifying and adjusting order of the already-existing fields of an embed.

packages/builders/src/messages/poll/Poll.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class PollBuilder implements JSONEncodable<RESTAPIPoll> {
8282
*
8383
* @remarks
8484
* This method behaves similarly
85-
* to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
85+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
8686
* The maximum amount of answers that can be added is 10.
8787
*
8888
* It's useful for modifying and adjusting order of the already-existing answers of a poll.

packages/collection/src/collection.ts

+21-21
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
148148
}
149149

150150
/**
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()}.
152152
* Returns the item at a given index, allowing for positive and negative integers.
153153
* Negative integers count back from the last item in the collection.
154154
*
@@ -172,7 +172,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
172172
}
173173

174174
/**
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()}.
176176
* Returns the key at a given index, allowing for positive and negative integers.
177177
* Negative integers count back from the last item in the collection.
178178
*
@@ -240,7 +240,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
240240
}
241241

242242
/**
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()}
244244
* but returns a Collection instead of an Array.
245245
*/
246246
public reverse() {
@@ -252,10 +252,10 @@ export class Collection<Key, Value> extends Map<Key, Value> {
252252

253253
/**
254254
* 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()}.
256256
* All collections used in Discord.js are mapped using their `id` property, and if you want to find by id you
257257
* 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.
259259
*
260260
* @param fn - The function to test with (should return a boolean)
261261
* @param thisArg - Value to use as `this` when executing the function
@@ -288,7 +288,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
288288

289289
/**
290290
* 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()},
292292
* but returns the key rather than the positional index.
293293
*
294294
* @param fn - The function to test with (should return a boolean)
@@ -322,7 +322,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
322322

323323
/**
324324
* 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()}.
326326
*
327327
* @param fn - The function to test with (should return a boolean)
328328
* @param thisArg - Value to use as `this` when executing the function
@@ -354,7 +354,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
354354

355355
/**
356356
* 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()},
358358
* but returns the key rather than the positional index.
359359
*
360360
* @param fn - The function to test with (should return a boolean)
@@ -407,7 +407,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
407407

408408
/**
409409
* 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()},
411411
* but returns a Collection instead of an Array.
412412
*
413413
* @param fn - The function to test with (should return a boolean)
@@ -502,7 +502,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
502502

503503
/**
504504
* 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()}.
506506
*
507507
* @param fn - Function that produces a new Collection
508508
* @param thisArg - Value to use as `this` when executing the function
@@ -529,7 +529,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
529529

530530
/**
531531
* 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()}.
533533
*
534534
* @param fn - Function that produces an element of the new array, taking three arguments
535535
* @param thisArg - Value to use as `this` when executing the function
@@ -559,7 +559,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
559559

560560
/**
561561
* 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()}.
563563
*
564564
* @param fn - Function that produces an element of the new collection, taking three arguments
565565
* @param thisArg - Value to use as `this` when executing the function
@@ -586,7 +586,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
586586

587587
/**
588588
* 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()}.
590590
*
591591
* @param fn - Function used to test (should return a boolean)
592592
* @param thisArg - Value to use as `this` when executing the function
@@ -609,7 +609,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
609609

610610
/**
611611
* 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()}.
613613
*
614614
* @param fn - Function used to test (should return a boolean)
615615
* @param thisArg - Value to use as `this` when executing the function
@@ -646,7 +646,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
646646

647647
/**
648648
* 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()}.
650650
*
651651
* @param fn - Function used to reduce, taking four arguments; `accumulator`, `currentValue`, `currentKey`,
652652
* and `collection`
@@ -688,7 +688,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
688688

689689
/**
690690
* 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()}.
692692
*
693693
* @param fn - Function used to reduce, taking four arguments; `accumulator`, `value`, `key`, and `collection`
694694
* @param initialValue - Starting value for the accumulator
@@ -730,7 +730,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
730730

731731
/**
732732
* 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()},
734734
* but returns the collection instead of undefined.
735735
*
736736
* @param fn - Function to execute for each element
@@ -832,7 +832,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
832832
/**
833833
* The sort method sorts the items of a collection in place and returns it.
834834
* 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()}.
836836
*
837837
* @param compareFunction - Specifies a function that defines the sort order. The return value of this function should be negative if
838838
* `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> {
10171017
}
10181018

10191019
/**
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()}
10211021
* but returns a Collection instead of an Array.
10221022
*/
10231023
public toReversed() {
@@ -1027,7 +1027,7 @@ export class Collection<Key, Value> extends Map<Key, Value> {
10271027
/**
10281028
* The toSorted method returns a shallow copy of the collection with the items sorted.
10291029
* 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()}.
10311031
*
10321032
* @param compareFunction - Specifies a function that defines the sort order. The return value of this function should be negative if
10331033
* `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> {
10891089
}
10901090

10911091
/**
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()}
10931093
* but returns a Collection instead of a Map.
10941094
*/
10951095
public static override groupBy<Key, Item>(

packages/discord.js/src/client/Client.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ class Client extends BaseClient {
656656
}
657657

658658
/**
659-
* Calls {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval} on a script
659+
* Calls {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/eval} on a script
660660
* with the client as `this`.
661661
* @param {string} script Script to eval
662662
* @returns {*}
@@ -733,7 +733,7 @@ exports.Client = Client;
733733
*/
734734

735735
/**
736-
* A {@link https://developer.twitter.com/en/docs/twitter-ids Twitter snowflake},
736+
* A {@link https://docs.x.com/resources/fundamentals/x-ids Twitter snowflake},
737737
* except the epoch is 2015-01-01T00:00:00.000Z.
738738
*
739739
* If we have a snowflake '266241948824764416' we can represent it as binary:

packages/discord.js/src/structures/interfaces/Collector.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class Collector extends AsyncEventEmitter {
267267

268268
/**
269269
* Allows collectors to be consumed with for-await-of loops
270-
* @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of}
270+
* @see {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/for-await...of}
271271
*/
272272
async *[Symbol.asyncIterator]() {
273273
const queue = [];

packages/rest/src/lib/REST.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,9 @@ export class REST extends AsyncEventEmitter<RestEvents> {
345345
for (const [index, file] of request.files.entries()) {
346346
const fileKey = file.key ?? `files[${index}]`;
347347

348-
// https://developer.mozilla.org/en-US/docs/Web/API/FormData/append#parameters
348+
// https://developer.mozilla.org/docs/Web/API/FormData/append#parameters
349349
// FormData.append only accepts a string or Blob.
350-
// https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob#parameters
350+
// https://developer.mozilla.org/docs/Web/API/Blob/Blob#parameters
351351
// The Blob constructor accepts TypedArray/ArrayBuffer, strings, and Blobs.
352352
if (isBufferLike(file.data)) {
353353
// Try to infer the content type from the buffer if one isn't passed

0 commit comments

Comments
 (0)