hennus-api
Version:
Esta es una libreria para el bot Hennus
24 lines (23 loc) • 728 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ComponentsInteractionBased = void 0;
const v10_1 = require("discord-api-types/v10");
const interaction_1 = require("../../base/interaction");
class ComponentsInteractionBased extends interaction_1.BasedInteraction {
constructor(data, client) {
super(data, client);
this.customId = data.data.custom_id;
this.componetType = data.data.component_type;
}
;
isButton() {
return this.componetType == v10_1.ComponentType.Button;
}
;
isSelect() {
return this.componetType != v10_1.ComponentType.Button;
}
;
}
exports.ComponentsInteractionBased = ComponentsInteractionBased;
;