From a7425c29c4f23f1b31f4c6a463107ca9eb7fd7e2 Mon Sep 17 00:00:00 2001 From: Tetie Date: Fri, 7 Apr 2023 12:35:56 +0200 Subject: [PATCH] fix: fix external links (#9313) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: fix external links * fix: fix external links * fix: link to correct classes * fix: fix JSONEncodable link * chore: fix select menu link * fix: fix external links * fix: link to correct classes * fix: fix JSONEncodable link * chore: fix select menu link * fix: fix collection#sweep url * fix: fix subpackages urls * fix: fix discord.js docs url * Update packages/util/docs/README.md Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Aura Román Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> --- packages/brokers/docs/README.md | 2 +- packages/builders/docs/README.md | 2 +- packages/collection/docs/README.md | 2 +- packages/discord.js/docs/README.md | 2 +- packages/discord.js/src/client/BaseClient.js | 2 +- packages/discord.js/src/client/Client.js | 6 +++--- packages/discord.js/src/structures/ActionRowBuilder.js | 2 +- packages/discord.js/src/structures/ApplicationCommand.js | 2 +- packages/discord.js/src/structures/ButtonBuilder.js | 2 +- .../discord.js/src/structures/ChannelSelectMenuBuilder.js | 2 +- packages/discord.js/src/structures/EmbedBuilder.js | 2 +- .../src/structures/MentionableSelectMenuBuilder.js | 2 +- packages/discord.js/src/structures/MessagePayload.js | 2 +- packages/discord.js/src/structures/ModalBuilder.js | 2 +- packages/discord.js/src/structures/RoleSelectMenuBuilder.js | 2 +- .../discord.js/src/structures/StringSelectMenuBuilder.js | 2 +- .../src/structures/StringSelectMenuOptionBuilder.js | 2 +- packages/discord.js/src/structures/TextInputBuilder.js | 2 +- packages/discord.js/src/structures/UserSelectMenuBuilder.js | 2 +- packages/discord.js/src/util/Components.js | 2 +- packages/discord.js/src/util/Options.js | 2 +- packages/discord.js/src/util/Sweepers.js | 2 +- packages/proxy/docs/README.md | 2 +- packages/rest/docs/README.md | 2 +- packages/util/docs/README.md | 2 +- packages/voice/docs/README.md | 2 +- packages/ws/docs/README.md | 2 +- 27 files changed, 29 insertions(+), 29 deletions(-) diff --git a/packages/brokers/docs/README.md b/packages/brokers/docs/README.md index 88e2e10f72f2..29247c8cea21 100644 --- a/packages/brokers/docs/README.md +++ b/packages/brokers/docs/README.md @@ -1 +1 @@ -## [View the documentation here.](https://discord.js.org/#/docs/brokers) +## [View the documentation here.](https://discord.js.org/docs/packages/brokers/main) diff --git a/packages/builders/docs/README.md b/packages/builders/docs/README.md index b5a4bb01b18c..efed4aba3991 100644 --- a/packages/builders/docs/README.md +++ b/packages/builders/docs/README.md @@ -1 +1 @@ -## [View the documentation here.](https://discord.js.org/#/docs/builders) +## [View the documentation here.](https://discord.js.org/docs/packages/builders/main) diff --git a/packages/collection/docs/README.md b/packages/collection/docs/README.md index e729e721f591..7a63106ac796 100644 --- a/packages/collection/docs/README.md +++ b/packages/collection/docs/README.md @@ -1 +1 @@ -## [View the documentation here.](https://discord.js.org/#/docs/collection) +## [View the documentation here.](https://discord.js.org/docs/packages/collection/main) diff --git a/packages/discord.js/docs/README.md b/packages/discord.js/docs/README.md index b5ac7978f77d..978bafce93ae 100644 --- a/packages/discord.js/docs/README.md +++ b/packages/discord.js/docs/README.md @@ -1 +1 @@ -## [View the documentation here.](https://discord.js.org/#/docs) +## [View the documentation here.](https://discord.js.org/docs/packages/discord.js/main) diff --git a/packages/discord.js/src/client/BaseClient.js b/packages/discord.js/src/client/BaseClient.js index 3020db823af3..4b6cf7bd3ff9 100644 --- a/packages/discord.js/src/client/BaseClient.js +++ b/packages/discord.js/src/client/BaseClient.js @@ -77,5 +77,5 @@ module.exports = BaseClient; /** * @external REST - * @see {@link https://discord.js.org/#/docs/rest/main/class/REST} + * @see {@link https://discord.js.org/docs/packages/rest/main/REST:Class} */ diff --git a/packages/discord.js/src/client/Client.js b/packages/discord.js/src/client/Client.js index 2263e969c75b..dc3ae673e705 100644 --- a/packages/discord.js/src/client/Client.js +++ b/packages/discord.js/src/client/Client.js @@ -544,15 +544,15 @@ module.exports = Client; /** * @external Collection - * @see {@link https://discord.js.org/#/docs/collection/main/class/Collection} + * @see {@link https://discord.js.org/docs/packages/collection/main/Collection:Class} */ /** * @external ImageURLOptions - * @see {@link https://discord.js.org/#/docs/rest/main/typedef/ImageURLOptions} + * @see {@link https://discord.js.org/docs/packages/rest/main/ImageURLOptions:Interface} */ /** * @external BaseImageURLOptions - * @see {@link https://discord.js.org/#/docs/rest/main/typedef/BaseImageURLOptions} + * @see {@link https://discord.js.org/docs/packages/rest/main/BaseImageURLOptions:Interface} */ diff --git a/packages/discord.js/src/structures/ActionRowBuilder.js b/packages/discord.js/src/structures/ActionRowBuilder.js index eb5f27630a61..31c30643e5bf 100644 --- a/packages/discord.js/src/structures/ActionRowBuilder.js +++ b/packages/discord.js/src/structures/ActionRowBuilder.js @@ -34,5 +34,5 @@ module.exports = ActionRowBuilder; /** * @external BuildersActionRow - * @see {@link https://discord.js.org/#/docs/builders/main/class/ActionRowBuilder} + * @see {@link https://discord.js.org/docs/packages/builders/main/ActionRowBuilder:Class} */ diff --git a/packages/discord.js/src/structures/ApplicationCommand.js b/packages/discord.js/src/structures/ApplicationCommand.js index 949a08a68ce9..6f9ea3c337f0 100644 --- a/packages/discord.js/src/structures/ApplicationCommand.js +++ b/packages/discord.js/src/structures/ApplicationCommand.js @@ -602,5 +602,5 @@ module.exports = ApplicationCommand; /** * @external ApplicationCommandOptionAllowedChannelTypes - * @see {@link https://discord.js.org/#/docs/builders/main/typedef/ApplicationCommandOptionAllowedChannelTypes} + * @see {@link https://discord.js.org/docs/packages/builders/main/ApplicationCommandOptionAllowedChannelTypes:TypeAlias} */ diff --git a/packages/discord.js/src/structures/ButtonBuilder.js b/packages/discord.js/src/structures/ButtonBuilder.js index a32bf0015347..647feef519bb 100644 --- a/packages/discord.js/src/structures/ButtonBuilder.js +++ b/packages/discord.js/src/structures/ButtonBuilder.js @@ -42,5 +42,5 @@ module.exports = ButtonBuilder; /** * @external BuildersButton - * @see {@link https://discord.js.org/#/docs/builders/main/class/ButtonBuilder} + * @see {@link https://discord.js.org/docs/packages/builders/main/ButtonBuilder:Class} */ diff --git a/packages/discord.js/src/structures/ChannelSelectMenuBuilder.js b/packages/discord.js/src/structures/ChannelSelectMenuBuilder.js index 324f70b3e27f..29ef31baeba2 100644 --- a/packages/discord.js/src/structures/ChannelSelectMenuBuilder.js +++ b/packages/discord.js/src/structures/ChannelSelectMenuBuilder.js @@ -29,5 +29,5 @@ module.exports = ChannelSelectMenuBuilder; /** * @external BuildersChannelSelectMenu - * @see {@link https://discord.js.org/#/docs/builders/main/class/ChannelSelectMenuBuilder} + * @see {@link https://discord.js.org/docs/packages/builders/main/ChannelSelectMenuBuilder:Class} */ diff --git a/packages/discord.js/src/structures/EmbedBuilder.js b/packages/discord.js/src/structures/EmbedBuilder.js index 58d5c210436c..571fb6e6cc49 100644 --- a/packages/discord.js/src/structures/EmbedBuilder.js +++ b/packages/discord.js/src/structures/EmbedBuilder.js @@ -39,5 +39,5 @@ module.exports = EmbedBuilder; /** * @external BuildersEmbed - * @see {@link https://discord.js.org/#/docs/builders/main/class/EmbedBuilder} + * @see {@link https://discord.js.org/docs/packages/builders/main/EmbedBuilder:Class} */ diff --git a/packages/discord.js/src/structures/MentionableSelectMenuBuilder.js b/packages/discord.js/src/structures/MentionableSelectMenuBuilder.js index d5673db6865e..0db321923c58 100644 --- a/packages/discord.js/src/structures/MentionableSelectMenuBuilder.js +++ b/packages/discord.js/src/structures/MentionableSelectMenuBuilder.js @@ -29,5 +29,5 @@ module.exports = MentionableSelectMenuBuilder; /** * @external BuildersMentionableSelectMenu - * @see {@link https://discord.js.org/#/docs/builders/main/class/MentionableSelectMenuBuilder} + * @see {@link https://discord.js.org/docs/packages/builders/main/MentionableSelectMenuBuilder:Class} */ diff --git a/packages/discord.js/src/structures/MessagePayload.js b/packages/discord.js/src/structures/MessagePayload.js index 6bcac122a235..372c1cf4b375 100644 --- a/packages/discord.js/src/structures/MessagePayload.js +++ b/packages/discord.js/src/structures/MessagePayload.js @@ -297,5 +297,5 @@ module.exports = MessagePayload; /** * @external RawFile - * @see {@link https://discord.js.org/#/docs/rest/main/typedef/RawFile} + * @see {@link https://discord.js.org/docs/packages/rest/main/RawFile:Interface} */ diff --git a/packages/discord.js/src/structures/ModalBuilder.js b/packages/discord.js/src/structures/ModalBuilder.js index 84ddfbea29c4..dc14012f6cc6 100644 --- a/packages/discord.js/src/structures/ModalBuilder.js +++ b/packages/discord.js/src/structures/ModalBuilder.js @@ -32,5 +32,5 @@ module.exports = ModalBuilder; /** * @external BuildersModal - * @see {@link https://discord.js.org/#/docs/builders/main/class/ModalBuilder} + * @see {@link https://discord.js.org/docs/packages/builders/main/ModalBuilder:Class} */ diff --git a/packages/discord.js/src/structures/RoleSelectMenuBuilder.js b/packages/discord.js/src/structures/RoleSelectMenuBuilder.js index a42b436fa2c8..14e5151c6b65 100644 --- a/packages/discord.js/src/structures/RoleSelectMenuBuilder.js +++ b/packages/discord.js/src/structures/RoleSelectMenuBuilder.js @@ -29,5 +29,5 @@ module.exports = RoleSelectMenuBuilder; /** * @external BuildersRoleSelectMenu - * @see {@link https://discord.js.org/#/docs/builders/main/class/RoleSelectMenuBuilder} + * @see {@link https://discord.js.org/docs/packages/builders/main/RoleSelectMenuBuilder:Class} */ diff --git a/packages/discord.js/src/structures/StringSelectMenuBuilder.js b/packages/discord.js/src/structures/StringSelectMenuBuilder.js index 3dd645e3cb53..7eccb39b191c 100644 --- a/packages/discord.js/src/structures/StringSelectMenuBuilder.js +++ b/packages/discord.js/src/structures/StringSelectMenuBuilder.js @@ -74,5 +74,5 @@ module.exports = StringSelectMenuBuilder; /** * @external BuildersSelectMenu - * @see {@link https://discord.js.org/#/docs/builders/main/class/SelectMenuBuilder} + * @see {@link https://discord.js.org/docs/packages/builders/main/StringSelectMenuBuilder:Class} */ diff --git a/packages/discord.js/src/structures/StringSelectMenuOptionBuilder.js b/packages/discord.js/src/structures/StringSelectMenuOptionBuilder.js index f5fa6d9e6884..8e1cad8c2e1f 100644 --- a/packages/discord.js/src/structures/StringSelectMenuOptionBuilder.js +++ b/packages/discord.js/src/structures/StringSelectMenuOptionBuilder.js @@ -47,5 +47,5 @@ module.exports = StringSelectMenuOptionBuilder; /** * @external BuildersSelectMenuOption - * @see {@link https://discord.js.org/#/docs/builders/main/class/SelectMenuOptionBuilder} + * @see {@link https://discord.js.org/docs/packages/builders/main/SelectMenuOptionBuilder:Class} */ diff --git a/packages/discord.js/src/structures/TextInputBuilder.js b/packages/discord.js/src/structures/TextInputBuilder.js index a30b3689b701..4d07735cb868 100644 --- a/packages/discord.js/src/structures/TextInputBuilder.js +++ b/packages/discord.js/src/structures/TextInputBuilder.js @@ -29,5 +29,5 @@ module.exports = TextInputBuilder; /** * @external BuildersTextInput - * @see {@link https://discord.js.org/#/docs/builders/main/class/TextInputBuilder} + * @see {@link https://discord.js.org/docs/packages/builders/main/TextInputBuilder:Class} */ diff --git a/packages/discord.js/src/structures/UserSelectMenuBuilder.js b/packages/discord.js/src/structures/UserSelectMenuBuilder.js index 39db60fff326..fab93f6b9f97 100644 --- a/packages/discord.js/src/structures/UserSelectMenuBuilder.js +++ b/packages/discord.js/src/structures/UserSelectMenuBuilder.js @@ -29,5 +29,5 @@ module.exports = UserSelectMenuBuilder; /** * @external BuildersUserSelectMenu - * @see {@link https://discord.js.org/#/docs/builders/main/class/UserSelectMenuBuilder} + * @see {@link https://discord.js.org/docs/packages/rest/main/UserSelectMenuBuilder:Class} */ diff --git a/packages/discord.js/src/util/Components.js b/packages/discord.js/src/util/Components.js index 42bee7f2afa0..4369c8cdeddc 100644 --- a/packages/discord.js/src/util/Components.js +++ b/packages/discord.js/src/util/Components.js @@ -153,5 +153,5 @@ const UserSelectMenuComponent = require('../structures/UserSelectMenuComponent') /** * @external JSONEncodable - * @see {@link https://discord.js.org/#/docs/builders/main/typedef/JSONEncodable} + * @see {@link https://discord.js.org/docs/packages/util/main/JSONEncodable:Interface} */ diff --git a/packages/discord.js/src/util/Options.js b/packages/discord.js/src/util/Options.js index 52a756e9446c..0602c3d3abd6 100644 --- a/packages/discord.js/src/util/Options.js +++ b/packages/discord.js/src/util/Options.js @@ -198,5 +198,5 @@ module.exports = Options; /** * @external RESTOptions - * @see {@link https://discord.js.org/#/docs/rest/main/typedef/RESTOptions} + * @see {@link https://discord.js.org/docs/packages/rest/main/RESTOptions:Interface} */ diff --git a/packages/discord.js/src/util/Sweepers.js b/packages/discord.js/src/util/Sweepers.js index 7796ddc99a96..79ca54d44a97 100644 --- a/packages/discord.js/src/util/Sweepers.js +++ b/packages/discord.js/src/util/Sweepers.js @@ -8,7 +8,7 @@ const { DiscordjsTypeError, ErrorCodes } = require('../errors'); /** * @typedef {Function} GlobalSweepFilter * @returns {Function|null} Return `null` to skip sweeping, otherwise a function passed to `sweep()`, - * See {@link [Collection#sweep](https://discord.js.org/#/docs/collection/main/class/Collection?scrollTo=sweep)} + * See {@link [Collection#sweep](https://discord.js.org/docs/packages/collection/main/Collection:Class#sweep)} * for the definition of this function. */ diff --git a/packages/proxy/docs/README.md b/packages/proxy/docs/README.md index 22582e3d083f..428efdf70744 100644 --- a/packages/proxy/docs/README.md +++ b/packages/proxy/docs/README.md @@ -1 +1 @@ -## [View the documentation here.](https://discord.js.org/#/docs/proxy) +## [View the documentation here.](https://discord.js.org/docs/packages/proxy/main) diff --git a/packages/rest/docs/README.md b/packages/rest/docs/README.md index 08cc4b4c66d8..67629c684db0 100644 --- a/packages/rest/docs/README.md +++ b/packages/rest/docs/README.md @@ -1 +1 @@ -## [View the documentation here.](https://discord.js.org/#/docs/rest) +## [View the documentation here.](https://discord.js.org/docs/packages/rest/main) diff --git a/packages/util/docs/README.md b/packages/util/docs/README.md index 08cc4b4c66d8..91304bab12c2 100644 --- a/packages/util/docs/README.md +++ b/packages/util/docs/README.md @@ -1 +1 @@ -## [View the documentation here.](https://discord.js.org/#/docs/rest) +## [View the documentation here.](https://discord.js.org/docs/packages/util/main) diff --git a/packages/voice/docs/README.md b/packages/voice/docs/README.md index 197a74e13303..c9c4f646f6e1 100644 --- a/packages/voice/docs/README.md +++ b/packages/voice/docs/README.md @@ -1 +1 @@ -## [View the documentation here.](https://discord.js.org/#/docs/voice) +## [View the documentation here.](https://discord.js.org/docs/packages/voice/main) diff --git a/packages/ws/docs/README.md b/packages/ws/docs/README.md index d67329190bf0..f9308141dfe1 100644 --- a/packages/ws/docs/README.md +++ b/packages/ws/docs/README.md @@ -1 +1 @@ -## [View the documentation here.](https://discord.js.org/#/docs/ws) +## [View the documentation here.](https://discord.js.org/docs/packages/ws/main)