forgescript
Version:
ForgeScript is a comprehensive package that empowers you to effortlessly interact with Discord's API. It ensures scripting remains easy to learn and consistently effective.
20 lines • 620 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApplicationCommand = void 0;
const core_1 = require("../core");
class ApplicationCommand {
options;
compiled;
constructor(options) {
this.options = options;
this.compiled = core_1.Compiler.compile(options.code, options.path);
}
get name() {
return this.options.data.name;
}
toJSON() {
return "toJSON" in this.options.data ? this.options.data.toJSON() : this.options.data;
}
}
exports.ApplicationCommand = ApplicationCommand;
//# sourceMappingURL=ApplicationCommand.js.map
;