djs-builder 0.6.16 → 0.6.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -187,7 +187,8 @@ function CreateRow(components) {
187
187
  value = false,
188
188
  id = false,
189
189
  max = false,
190
- min = false,
190
+ min = false,
191
+ disabled = false
191
192
  } = options;
192
193
 
193
194
  const selectOptions = data.map((item, index) => {
@@ -224,6 +225,10 @@ function CreateRow(components) {
224
225
  selectMenu.addOptions(selectOptions);
225
226
  }
226
227
 
228
+ if (options.hasOwnProperty("disabled")) {
229
+ selectMenu.setDisabled(options.disabled);
230
+ }
231
+
227
232
  actionRows.push(new ActionRowBuilder().addComponents(selectMenu));
228
233
  } else {
229
234
  throw new Error("Invalid component format");
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  {
3
3
  "name": "djs-builder",
4
- "version": "0.6.16",
5
- "description": "šŸŽ‰ Package Update! šŸ„\nNew features added:\n- `GetUser`: Easily fetch a user from **ID**, **mention**, or even from a **reply**.\n\nšŸ›  Fixes:\n- Minor bugs fixed\n- Improved stability and error handling\n\nšŸ”— Learn more on [NPM](https://www.npmjs.com/package/djs-builder)",
4
+ "version": "0.6.17",
5
+ "description": "šŸŽ‰ Package Update! šŸ„\n- Add option `disabled` to the selectMenu options \nNew features added:\n- `GetUser`: Easily fetch a user from **ID**, **mention**, or even from a **reply**.\n\nšŸ›  Fixes:\n- Minor bugs fixed\n- Improved stability and error handling\n\nšŸ”— Learn more on [NPM](https://www.npmjs.com/package/djs-builder)",
6
6
  "main": "handler/starter.js",
7
7
  "dependencies": {
8
8
  "axios": "^1.11.0",