From 976b234e9dc9999e5dee47b58c85afbc1cd494c2 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Tue, 6 Dec 2022 16:30:48 +0000 Subject: [PATCH] docs: Fix deprecated links (#8907) docs: fix malformed deprecated descriptions Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/discord.js/src/structures/ActionRow.js | 2 +- packages/discord.js/src/structures/BaseInteraction.js | 2 +- packages/discord.js/typings/index.d.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/discord.js/src/structures/ActionRow.js b/packages/discord.js/src/structures/ActionRow.js index 67aeebbaa..ac5413821 100644 --- a/packages/discord.js/src/structures/ActionRow.js +++ b/packages/discord.js/src/structures/ActionRow.js @@ -25,7 +25,7 @@ class ActionRow extends Component { * Creates a new action row builder from JSON data * @param {JSONEncodable|APIActionRowComponent} other The other data * @returns {ActionRowBuilder} - * @deprecated Use {@link ActionRowBuilder.from()} instead. + * @deprecated Use {@link ActionRowBuilder.from} instead. */ static from(other) { if (isJSONEncodable(other)) { diff --git a/packages/discord.js/src/structures/BaseInteraction.js b/packages/discord.js/src/structures/BaseInteraction.js index df98cf2e1..44b8a306f 100644 --- a/packages/discord.js/src/structures/BaseInteraction.js +++ b/packages/discord.js/src/structures/BaseInteraction.js @@ -275,7 +275,7 @@ class BaseInteraction extends Base { * Indicates whether this interaction is a {@link StringSelectMenuInteraction}. * @returns {boolean} * - * @deprecated Use {@link Interaction#isStringSelectMenu} instead + * @deprecated Use {@link BaseInteraction#isStringSelectMenu} instead. */ isSelectMenu() { return this.isStringSelectMenu(); diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 72b715e31..321098758 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1681,7 +1681,7 @@ export class BaseInteraction extends Base public isMessageContextMenuCommand(): this is MessageContextMenuCommandInteraction; public isModalSubmit(): this is ModalSubmitInteraction; public isUserContextMenuCommand(): this is UserContextMenuCommandInteraction; - /** @deprecated Use {@link BaseInteraction#isStringSelectMenu} instead */ + /** @deprecated Use {@link isStringSelectMenu} instead. */ public isSelectMenu(): this is StringSelectMenuInteraction; public isAnySelectMenu(): this is AnySelectMenuInteraction; public isStringSelectMenu(): this is StringSelectMenuInteraction;