@spatulox/simplediscordbot 4.0.0 → 4.0.2

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/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
  Date format : dd/mm/yyyy
3
3
 
4
+ ### 29/09/2026 - 4.0.1
5
+ - Fix :
6
+ - `BotEnv.dev` follows the same rule as the `dim` CLI (`@spatulox/discord-interaction-manager`) : only `DISCORD_BOT_DEV=true` or `1` enable the dev mode. Other values (`yes`, `dev`...) enabled it on the bot but not in `dim`, so the bot loaded the `_dev` interactions while `dim` deployed the prod ones
7
+
4
8
  ### 29/09/26 - 4.0.0
5
9
  - Breaking :
6
10
  - `GuildManager.searchMember()`, `GuildManager.isMemberInGuild()` and `GuildUserManager.isInVoice()` now take `(guildId, memberId)` like every other member method
package/dist/index.js CHANGED
@@ -258,9 +258,7 @@ var BotEnv = {
258
258
  return token;
259
259
  },
260
260
  get dev() {
261
- const dev = process.env.DISCORD_BOT_DEV;
262
- if (dev === void 0) return false;
263
- return !["", "false", "0", "no", "off"].includes(dev.trim().toLowerCase());
261
+ return ["true", "1"].includes(process.env.DISCORD_BOT_DEV?.trim().toLowerCase() ?? "");
264
262
  }
265
263
  };
266
264
 
@@ -706,7 +704,7 @@ var BotInteraction = class {
706
704
 
707
705
  // package.json
708
706
  var name = "@spatulox/simplediscordbot";
709
- var version = "3.2.0";
707
+ var version = "4.0.1";
710
708
  var author = "Spatulox";
711
709
  var description = "Simple discord bot framework to set up a bot under 30 secondes";
712
710
  var license = "MIT";
package/dist/index.mjs CHANGED
@@ -229,9 +229,7 @@ var BotEnv = {
229
229
  return token;
230
230
  },
231
231
  get dev() {
232
- const dev = process.env.DISCORD_BOT_DEV;
233
- if (dev === void 0) return false;
234
- return !["", "false", "0", "no", "off"].includes(dev.trim().toLowerCase());
232
+ return ["true", "1"].includes(process.env.DISCORD_BOT_DEV?.trim().toLowerCase() ?? "");
235
233
  }
236
234
  };
237
235
 
@@ -685,7 +683,7 @@ var BotInteraction = class {
685
683
 
686
684
  // package.json
687
685
  var name = "@spatulox/simplediscordbot";
688
- var version = "3.2.0";
686
+ var version = "4.0.1";
689
687
  var author = "Spatulox";
690
688
  var description = "Simple discord bot framework to set up a bot under 30 secondes";
691
689
  var license = "MIT";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spatulox/simplediscordbot",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "author": "Spatulox",
5
5
  "description": "Simple discord bot framework to set up a bot under 30 secondes",
6
6
  "main": "./dist/index.js",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "license": "MIT",
39
39
  "dependencies": {
40
- "@spatulox/discord-interaction-manager": "^2.4.0",
40
+ "@spatulox/discord-interaction-manager": "^2.5.0",
41
41
  "@spatulox/utils": "^0.2.0"
42
42
  },
43
43
  "peerDependencies": {