diff --git a/src/managers/ApplicationCommandPermissionsManager.js b/src/managers/ApplicationCommandPermissionsManager.js index b5b39680c..d8887fdf1 100644 --- a/src/managers/ApplicationCommandPermissionsManager.js +++ b/src/managers/ApplicationCommandPermissionsManager.js @@ -411,7 +411,8 @@ class ApplicationCommandPermissionsManager extends BaseManager { module.exports = ApplicationCommandPermissionsManager; +/* eslint-disable max-len */ /** * @external APIApplicationCommandPermissions - * @see {@link https://discord.com/developers/docs/interactions/slash-commands#applicationcommandpermissions} + * @see {@link https://discord.com/developers/docs/interactions/slash-commands#application-command-permissions-object-application-command-permissions-structure} */ diff --git a/src/structures/ApplicationCommand.js b/src/structures/ApplicationCommand.js index c167748cc..fc8d6da0f 100644 --- a/src/structures/ApplicationCommand.js +++ b/src/structures/ApplicationCommand.js @@ -190,12 +190,14 @@ class ApplicationCommand extends Base { module.exports = ApplicationCommand; +/* eslint-disable max-len */ /** * @external APIApplicationCommand - * @see {@link https://discord.com/developers/docs/interactions/slash-commands#applicationcommand} + * @see {@link https://discord.com/developers/docs/interactions/slash-commands#application-command-object-application-command-structure} */ +/* eslint-disable max-len */ /** * @external APIApplicationCommandOption - * @see {@link https://discord.com/developers/docs/interactions/slash-commands#applicationcommandoption} + * @see {@link https://discord.com/developers/docs/interactions/slash-commands#application-command-object-application-command-option-structure} */ diff --git a/src/structures/CommandInteraction.js b/src/structures/CommandInteraction.js index b7a33ac20..57894029c 100644 --- a/src/structures/CommandInteraction.js +++ b/src/structures/CommandInteraction.js @@ -92,8 +92,8 @@ class CommandInteraction extends Interaction { * @property {CommandInteractionOption[]} [options] Additional options if this option is a * subcommand (group) * @property {User} [user] The resolved user - * @property {GuildMember|APIGuildMember} [member] The resolved member - * @property {GuildChannel|APIChannel} [channel] The resolved channel + * @property {GuildMember|APIInteractionDataResolvedOption} [member] The resolved member + * @property {GuildChannel|APIInteractionDataResolvedOption} [channel] The resolved channel * @property {Role|APIRole} [role] The resolved role */ @@ -151,3 +151,8 @@ module.exports = CommandInteraction; * @external APIApplicationCommandOptionResolved * @see {@link https://discord.com/developers/docs/interactions/slash-commands#interaction-applicationcommandinteractiondataresolved} */ + +/** + * @external APIInteractionDataResolvedOption + * @see {@link https://discord.com/developers/docs/interactions/slash-commands#sample-application-command-interaction-application-command-interaction-data-resolved-structure} + */ diff --git a/src/structures/CommandInteractionOptionResolver.js b/src/structures/CommandInteractionOptionResolver.js index 920054efb..b97a1af19 100644 --- a/src/structures/CommandInteractionOptionResolver.js +++ b/src/structures/CommandInteractionOptionResolver.js @@ -134,7 +134,7 @@ class CommandInteractionOptionResolver { * Gets a channel option. * @param {string} name The name of the option. * @param {boolean} [required=false] Whether to throw an error if the option is not found. - * @returns {?(GuildChannel|APIInteractionDataResolvedChannel)} + * @returns {?(GuildChannel|APIInteractionDataResolvedOption)} * The value of the option, or null if not set and not required. */ getChannel(name, required = false) { @@ -190,7 +190,7 @@ class CommandInteractionOptionResolver { * Gets a member option. * @param {string} name The name of the option. * @param {boolean} [required=false] Whether to throw an error if the option is not found. - * @returns {?(GuildMember|APIInteractionDataResolvedGuildMember)} + * @returns {?(GuildMember|APIInteractionDataResolvedOption)} * The value of the option, or null if not set and not required. */ getMember(name, required = false) { @@ -213,7 +213,7 @@ class CommandInteractionOptionResolver { * Gets a mentionable option. * @param {string} name The name of the option. * @param {boolean} [required=false] Whether to throw an error if the option is not found. - * @returns {?(User|GuildMember|APIInteractionDataResolvedGuildMember|Role|APIRole)} + * @returns {?(User|GuildMember|APIInteractionDataResolvedOption|Role|APIRole)} * The value of the option, or null if not set and not required. */ getMentionable(name, required = false) {