From 66b971899ab702240642e3ae2d189fd9e7efc701 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Wed, 29 Jan 2025 09:27:58 +0000 Subject: [PATCH] docs: Use link tags to render links on the documentation (#10731) * docs: use link tags * docs(DateResolvable): update link --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/discord.js/src/managers/ThreadManager.js | 2 +- packages/discord.js/src/sharding/ShardClientUtil.js | 3 ++- .../discord.js/src/structures/interfaces/TextBasedChannel.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/discord.js/src/managers/ThreadManager.js b/packages/discord.js/src/managers/ThreadManager.js index ab32cc495..a07a9b3d7 100644 --- a/packages/discord.js/src/managers/ThreadManager.js +++ b/packages/discord.js/src/managers/ThreadManager.js @@ -97,7 +97,7 @@ class ThreadManager extends CachedManager { * Data that can be resolved to a Date object. This can be: * * A Date object * * A number representing a timestamp - * * An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string + * * An {@link https://en.wikipedia.org/wiki/ISO_8601 ISO 8601} string * @typedef {Date|number|string} DateResolvable */ diff --git a/packages/discord.js/src/sharding/ShardClientUtil.js b/packages/discord.js/src/sharding/ShardClientUtil.js index ae5e67e7e..cbc124228 100644 --- a/packages/discord.js/src/sharding/ShardClientUtil.js +++ b/packages/discord.js/src/sharding/ShardClientUtil.js @@ -225,7 +225,8 @@ class ShardClientUtil { * Emitted when the client encounters an error. * Errors thrown within this event do not have a catch handler, it is * recommended to not use async functions as `error` event handlers. See the - * [Node.js docs](https://nodejs.org/api/events.html#capture-rejections-of-promises) for details. + * {@link https://nodejs.org/api/events.html#capture-rejections-of-promises Node.js documentation} + * for details.) * @event Client#error * @param {Error} error The error encountered */ diff --git a/packages/discord.js/src/structures/interfaces/TextBasedChannel.js b/packages/discord.js/src/structures/interfaces/TextBasedChannel.js index d2e408580..bac708143 100644 --- a/packages/discord.js/src/structures/interfaces/TextBasedChannel.js +++ b/packages/discord.js/src/structures/interfaces/TextBasedChannel.js @@ -75,7 +75,7 @@ class TextBasedChannel { * @property {?string} [content=''] The content for the message. This can only be `null` when editing a message. * @property {Array<(EmbedBuilder|Embed|APIEmbed)>} [embeds] The embeds for the message * @property {MessageMentionOptions} [allowedMentions] Which mentions should be parsed from the message content - * (see [here](https://discord.com/developers/docs/resources/message#allowed-mentions-object) for more details) + * (see {@link https://discord.com/developers/docs/resources/message#allowed-mentions-object here} for more details) * @property {Array<(AttachmentBuilder|Attachment|AttachmentPayload|BufferResolvable)>} [files] * The files to send with the message. * @property {Array<(ActionRowBuilder|ActionRow|APIActionRowComponent)>} [components]