@spatulox/simplediscordbot 1.0.39 → 1.0.41

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
@@ -5,14 +5,21 @@
5
5
  [![downloads](https://img.shields.io/npm/dm/@spatulox/simplediscordbot.svg)](https://npmjs.com/package/@spatulox/simplediscordbot)
6
6
  [![license](https://img.shields.io/npm/l/@spatulox/simplediscordbot.svg)](LICENSE)
7
7
 
8
- **Ultra-simple Framework Discord.js TypeScript**
8
+ > **TypeScript Discord.js framework** - Simple, powerful, framework-ready. Built for developers who want clean bot architecture.
9
+
10
+ ## ✨ Features :
11
+ > - Fully compatible with discordjs
12
+ > - Include the [DiscordInterationManager](https://github.com/Spatulox/DiscordInteractionManager) package
13
+ > - Simple Log package
14
+ > - Provides easy Managers to avoid repetitive code everywhere
15
+ > - Simple yet powerful builders (Embeds, Modals, SelectMenus, Components) that rely on discord.js for full compatibility
16
+
9
17
 
10
18
  ## Installation
11
19
  ```bash
12
20
  npm i @spatulox/simplediscordbot
13
21
  ```
14
22
 
15
- > **TypeScript Discord.js framework** - Simple, powerful, framework-ready. Built for developers who want clean bot architecture.
16
23
  ## Quick Start
17
24
 
18
25
  Env Variables:
package/dist/index.js CHANGED
@@ -641,16 +641,12 @@ var SendableComponentBuilder = class {
641
641
  }
642
642
  return base;
643
643
  }
644
- /*static buildInteraction (content: string, epheremal?: boolean): InteractionReplyOptions | InteractionUpdateOptions;
645
- static buildInteraction (component: SendableComponent | SendableComponent[], epheremal?: boolean): InteractionReplyOptions | InteractionUpdateOptions;
646
- static buildInteraction (content?: string | null, component?: SendableComponent | SendableComponent[] | null, ephemeral?: boolean): InteractionReplyOptions | InteractionUpdateOptions;*/
647
644
  static buildInteraction(content, component, ephemeral) {
648
645
  let base = {};
649
646
  this.build(base, content, component);
650
- if (ephemeral || typeof component == "boolean" && component) {
647
+ if (ephemeral) {
651
648
  base.flags = [import_discord3.MessageFlags.Ephemeral];
652
649
  }
653
- console.log(base);
654
650
  return base;
655
651
  }
656
652
  static buildMessage(contentOrComponent, component) {
@@ -2528,7 +2524,7 @@ var SimpleMutex = class {
2528
2524
  // package.json
2529
2525
  var package_default = {
2530
2526
  name: "@spatulox/simplediscordbot",
2531
- version: "1.0.38",
2527
+ version: "1.0.40",
2532
2528
  author: "Spatulox",
2533
2529
  description: "Simple discord bot framework to set up a bot under 30 secondes",
2534
2530
  exports: {
@@ -2552,7 +2548,7 @@ var package_default = {
2552
2548
  },
2553
2549
  license: "MIT",
2554
2550
  dependencies: {
2555
- "@spatulox/discord-interaction-manager": "^1.0.17",
2551
+ "@spatulox/discord-interaction-manager": "^1.0.20",
2556
2552
  "discord.js": "^14.25.1"
2557
2553
  },
2558
2554
  devDependencies: {
package/dist/index.mjs CHANGED
@@ -600,16 +600,12 @@ var SendableComponentBuilder = class {
600
600
  }
601
601
  return base;
602
602
  }
603
- /*static buildInteraction (content: string, epheremal?: boolean): InteractionReplyOptions | InteractionUpdateOptions;
604
- static buildInteraction (component: SendableComponent | SendableComponent[], epheremal?: boolean): InteractionReplyOptions | InteractionUpdateOptions;
605
- static buildInteraction (content?: string | null, component?: SendableComponent | SendableComponent[] | null, ephemeral?: boolean): InteractionReplyOptions | InteractionUpdateOptions;*/
606
603
  static buildInteraction(content, component, ephemeral) {
607
604
  let base = {};
608
605
  this.build(base, content, component);
609
- if (ephemeral || typeof component == "boolean" && component) {
606
+ if (ephemeral) {
610
607
  base.flags = [MessageFlags2.Ephemeral];
611
608
  }
612
- console.log(base);
613
609
  return base;
614
610
  }
615
611
  static buildMessage(contentOrComponent, component) {
@@ -2506,7 +2502,7 @@ var SimpleMutex = class {
2506
2502
  // package.json
2507
2503
  var package_default = {
2508
2504
  name: "@spatulox/simplediscordbot",
2509
- version: "1.0.38",
2505
+ version: "1.0.40",
2510
2506
  author: "Spatulox",
2511
2507
  description: "Simple discord bot framework to set up a bot under 30 secondes",
2512
2508
  exports: {
@@ -2530,7 +2526,7 @@ var package_default = {
2530
2526
  },
2531
2527
  license: "MIT",
2532
2528
  dependencies: {
2533
- "@spatulox/discord-interaction-manager": "^1.0.17",
2529
+ "@spatulox/discord-interaction-manager": "^1.0.20",
2534
2530
  "discord.js": "^14.25.1"
2535
2531
  },
2536
2532
  devDependencies: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spatulox/simplediscordbot",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "author": "Spatulox",
5
5
  "description": "Simple discord bot framework to set up a bot under 30 secondes",
6
6
  "exports": {
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
- "@spatulox/discord-interaction-manager": "^1.0.17",
27
+ "@spatulox/discord-interaction-manager": "^1.0.20",
28
28
  "discord.js": "^14.25.1"
29
29
  },
30
30
  "devDependencies": {