{"size": 820, "ext": "js", "max_stars_repo_path": "dist/structures/CommandInteraction.js", "max_stars_repo_name": "jhcpeixoto/fosscord.js", "max_stars_repo_stars_event_min_datetime": "2021-05-14T19:41:27.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-26T08:53:08.000Z", "max_issues_repo_path": "dist/structures/CommandInteraction.js", "max_issues_repo_name": "jhcpeixoto/fosscord.js", "max_issues_repo_issues_event_min_datetime": "2021-09-13T16:54:55.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-16T15:50:08.000Z", "max_forks_repo_path": "dist/structures/CommandInteraction.js", "max_forks_repo_name": "jhcpeixoto/fosscord.js", "max_forks_repo_forks_event_min_datetime": "2021-05-26T20:03:49.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-01T21:30:54.000Z"}
{"max_stars_count": 17, "max_issues_count": 2, "max_forks_count": 7, "avg_line_length": 39.0476190476, "max_line_length": 246, "alphanum_fraction": 0.6756097561}
// @ts-nocheck
'use strict';
const BaseCommandInteraction = require('./BaseCommandInteraction');
const CommandInteractionOptionResolver = require('./CommandInteractionOptionResolver');
/**
 * Represents a command interaction.
 * @extends {BaseCommandInteraction}
 */
class CommandInteraction extends BaseCommandInteraction {
    constructor(client, data) {
        var _a, _b;
        super(client, data);
        /**
         * The options passed to the command.
         * @type {CommandInteractionOptionResolver}
         */
        this.options = new CommandInteractionOptionResolver(this.client, (_b = (_a = data.data.options) === null || _a === void 0 ? void 0 : _a.map(option => this.transformOption(option, data.data.resolved))) !== null && _b !== void 0 ? _b : []);
    }
}
module.exports = CommandInteraction;
