@ayanaware/bentocord
Version:
Bentocord is a Bento plugin designed to rapidly build fully functional Discord Bots.
17 lines • 506 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SelectContext = void 0;
const ComponentContext_1 = require("./ComponentContext");
class SelectContext extends ComponentContext_1.ComponentContext {
get data() {
return this.interaction.data;
}
get values() {
return this.data.values;
}
hasValue(value) {
return this.values.includes(value);
}
}
exports.SelectContext = SelectContext;
//# sourceMappingURL=SelectContext.js.map