djs-builder 0.6.36 → 0.6.37

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 CHANGED
@@ -1536,10 +1536,6 @@ const endTimeMs = Date.now() + durationMs;
1536
1536
  } found)`;
1537
1537
 
1538
1538
 
1539
- giveaways.forEach((g) => {
1540
- Gdelete(g.messageId);
1541
- })
1542
-
1543
1539
  if (listContent.length <= MAX_MESSAGE_LENGTH) {
1544
1540
  // Output as a simple message (Under 2000 chars)
1545
1541
  return interaction.editReply({
@@ -53,6 +53,7 @@ async function Gstart({
53
53
  emoji: emoji = false,
54
54
  label: label = false,
55
55
  style: style = false,
56
+ id : id = false
56
57
  },
57
58
  }) {
58
59
  if (!winers) winers = 1;
@@ -67,7 +68,7 @@ async function Gstart({
67
68
  row = CreateRow([
68
69
  [
69
70
  {
70
- id: "djs-builder-giveaway",
71
+ id: id || "djs-builder-giveaway",
71
72
  style: style || 1,
72
73
  label: label,
73
74
  emoji: emoji,
@@ -212,7 +213,7 @@ async function giveaway_end(client, g, type) {
212
213
  await message.reply({
213
214
  content: `šŸŽ‰ **Giveaway Ended!**\n> Winner(s):\n- <@${winners
214
215
  .map((u) => `${u}`)
215
- .join(">\n- <@")}>`,
216
+ .join(">, <@")}>`,
216
217
  });
217
218
 
218
219
  await giveaway.findOneAndUpdate(
@@ -257,9 +258,9 @@ async function Greroll(client, messageId) {
257
258
  const winners = pickWinners(users_id, g.winersNumber);
258
259
 
259
260
  await message.reply({
260
- content: `šŸ”„ļø **Giveaway Reroll!**\n> Winners:\n- <@${winners
261
+ content: `šŸ”„ļø **Giveaway Reroll!**\n> Winner(s):\n- <@${winners
261
262
  .map((u) => `${u}`)
262
- .join(">\n- <@")}>`,
263
+ .join(">, <@")}>`,
263
264
  });
264
265
 
265
266
  let new_endType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "djs-builder",
3
- "version": "0.6.36",
3
+ "version": "0.6.37",
4
4
  "note": "šŸŽ‰ Package Update! šŸ„\n\n- Add Giveaway System šŸŽ‰ \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)",
5
5
  "description": "šŸŽ‰ Package Update! šŸ„",
6
6
  "main": "handler/starter.js",