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.
- package/function/function.js +6 -1
- package/package.json +2 -2
package/function/function.js
CHANGED
|
@@ -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.
|
|
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",
|