mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
docs(*): add links to Discord's API objects & data (#5862)
This commit is contained in:
@@ -89,15 +89,15 @@ class CommandInteraction extends Interaction {
|
||||
* @property {Collection<string, CommandInteractionOption>} [options] Additional options if this option is a
|
||||
* subcommand (group)
|
||||
* @property {User} [user] The resolved user
|
||||
* @property {GuildMember|Object} [member] The resolved member
|
||||
* @property {GuildChannel|Object} [channel] The resolved channel
|
||||
* @property {Role|Object} [role] The resolved role
|
||||
* @property {GuildMember|APIGuildMember} [member] The resolved member
|
||||
* @property {GuildChannel|APIChannel} [channel] The resolved channel
|
||||
* @property {Role|APIRole} [role] The resolved role
|
||||
*/
|
||||
|
||||
/**
|
||||
* Transforms an option received from the API.
|
||||
* @param {Object} option The received option
|
||||
* @param {Object} resolved The resolved interaction data
|
||||
* @param {APIApplicationCommandOption} option The received option
|
||||
* @param {APIApplicationCommandOptionResolved} resolved The resolved interaction data
|
||||
* @returns {CommandInteractionOption}
|
||||
* @private
|
||||
*/
|
||||
@@ -127,8 +127,8 @@ class CommandInteraction extends Interaction {
|
||||
|
||||
/**
|
||||
* Creates a collection of options from the received options array.
|
||||
* @param {Object[]} options The received options
|
||||
* @param {Object} resolved The resolved interaction data
|
||||
* @param {APIApplicationCommandOption[]} options The received options
|
||||
* @param {APIApplicationCommandOptionResolved} resolved The resolved interaction data
|
||||
* @returns {Collection<string, CommandInteractionOption>}
|
||||
* @private
|
||||
*/
|
||||
@@ -154,3 +154,9 @@ class CommandInteraction extends Interaction {
|
||||
InteractionResponses.applyToClass(CommandInteraction, ['deferUpdate', 'update']);
|
||||
|
||||
module.exports = CommandInteraction;
|
||||
|
||||
/* eslint-disable max-len */
|
||||
/**
|
||||
* @external APIApplicationCommandOptionResolved
|
||||
* @see {@link https://discord.com/developers/docs/interactions/slash-commands#interaction-applicationcommandinteractiondataresolved}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user