djs-builder 0.7.20 → 0.7.21
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/README.md +4 -4
- package/function/function.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -664,7 +664,7 @@ Same as CreateRow select menus.
|
|
|
664
664
|
```js
|
|
665
665
|
const { CreateComponents } = require("djs-builder");
|
|
666
666
|
|
|
667
|
-
const components = await CreateComponents(
|
|
667
|
+
const components = await CreateComponents(false, [
|
|
668
668
|
{
|
|
669
669
|
type: "text",
|
|
670
670
|
content: "Welcome to our server! 🎉",
|
|
@@ -1478,7 +1478,7 @@ await interaction.reply({ components, flags: 32768 });
|
|
|
1478
1478
|
|
|
1479
1479
|
### 🔹 Mode Differences
|
|
1480
1480
|
|
|
1481
|
-
| Feature | `
|
|
1481
|
+
| Feature | `false` Mode | `true` Mode |
|
|
1482
1482
|
| ---------------- | ----------------------- | ------------------------- |
|
|
1483
1483
|
| Return Type | Array of components | Single ContainerBuilder |
|
|
1484
1484
|
| Usage | Standard messages | Components V2 messages |
|
|
@@ -1490,8 +1490,8 @@ await interaction.reply({ components, flags: 32768 });
|
|
|
1490
1490
|
|
|
1491
1491
|
### 🔹 Notes
|
|
1492
1492
|
|
|
1493
|
-
- Use `
|
|
1494
|
-
- Use `
|
|
1493
|
+
- Use `true` mode for Discord's **Components V2** (newer UI)
|
|
1494
|
+
- Use `false` mode for standard component arrays
|
|
1495
1495
|
- Sections can have either a **button** or **thumbnail** as accessory, not both
|
|
1496
1496
|
- Media galleries support multiple images in a single component
|
|
1497
1497
|
- All components are fully customizable 🎨
|
package/function/function.js
CHANGED
|
@@ -409,7 +409,7 @@ async function CreateComponents(container, components) {
|
|
|
409
409
|
result.push(file);
|
|
410
410
|
}
|
|
411
411
|
} else if (item.type === "button") {
|
|
412
|
-
const but = await CreateRow(
|
|
412
|
+
const but = await CreateRow(item.components);
|
|
413
413
|
if (container === true) {
|
|
414
414
|
result.addActionRowComponents(but);
|
|
415
415
|
} else {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "djs-builder",
|
|
3
|
-
"version": "0.7.
|
|
4
|
-
"note": "🎉 Package Update v0.7.
|
|
3
|
+
"version": "0.7.21",
|
|
4
|
+
"note": "🎉 Package Update v0.7.21! \n\n- 🎨 component v2 set color !\n\n- 🌐 Dashboard System!\n • Discord OAuth2 Login\n • Server, Level, Giveaway & Blacklist Management\n • Logs Management Page\n\n- <:npm:1107014411375353968> Learn more on [NPM](https://www.npmjs.com/package/djs-builder)\n- <:Discord:906936109114753024> DISCORD SERVER : [LINK](https://discord.gg/myRzt9XCh2)",
|
|
5
5
|
"description": "🎉 Full-featured Discord.js utilities: CreateComponents, CreateModal, Dashboard, Logging & more! 🥏",
|
|
6
6
|
"main": "handler/starter.js",
|
|
7
7
|
"types": "index.d.ts",
|