@spatulox/simplediscordbot 1.7.0 → 1.7.1

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,8 @@
1
1
  # Changelog
2
2
  Date format : dd/mm/yyy
3
3
 
4
+ ### 08/04/2026 - 1.7.1
5
+ - WebHook Manager now don't crash when another bot with the same Webhook manager and webhook name try to access to the same webhook with the same name
4
6
 
5
- ### 08/04/2026
7
+ ### 08/04/2026 - 1.7.0
6
8
  - SelectMenu can now be directly put inside Bot.log.xxx() and Bot.message.send(). no more need for SelectMenuManager.rows()
package/dist/index.js CHANGED
@@ -14495,7 +14495,7 @@ var WebhookManager = class {
14495
14495
  if (this.webhook) return this.webhook;
14496
14496
  try {
14497
14497
  const webhooks = await this.textChannel.fetchWebhooks();
14498
- this.webhook = webhooks.find((h3) => h3.name === this.name) ?? await this.textChannel.createWebhook({
14498
+ this.webhook = webhooks.find((h3) => h3.name === this.name && h3.owner?.id == Bot.client.user?.id) ?? await this.textChannel.createWebhook({
14499
14499
  name: this.name,
14500
14500
  avatar: this.avatarURL,
14501
14501
  reason: "Auto-created by WebhookManager"
@@ -16066,7 +16066,7 @@ var SimpleMutex = class {
16066
16066
  // package.json
16067
16067
  var package_default = {
16068
16068
  name: "@spatulox/simplediscordbot",
16069
- version: "1.6.8",
16069
+ version: "1.7.0",
16070
16070
  author: "Spatulox",
16071
16071
  description: "Simple discord bot framework to set up a bot under 30 secondes",
16072
16072
  exports: {
@@ -16088,12 +16088,15 @@ var package_default = {
16088
16088
  },
16089
16089
  license: "MIT",
16090
16090
  dependencies: {
16091
- "@spatulox/discord-interaction-manager": "^2.0.6",
16091
+ "@spatulox/discord-interaction-manager": "^2.0.6"
16092
+ },
16093
+ peerDependencies: {
16092
16094
  "discord.js": "^14.26.0"
16093
16095
  },
16094
16096
  devDependencies: {
16095
16097
  "@types/node": "^22.14.0",
16096
16098
  "@types/node-schedule": "^2.1.7",
16099
+ "discord.js": "^14.26.0",
16097
16100
  dotenv: "^17.2.4",
16098
16101
  tsup: "^8.5.1",
16099
16102
  tsx: "^4.20.3",
package/dist/index.mjs CHANGED
@@ -14491,7 +14491,7 @@ var WebhookManager = class {
14491
14491
  if (this.webhook) return this.webhook;
14492
14492
  try {
14493
14493
  const webhooks = await this.textChannel.fetchWebhooks();
14494
- this.webhook = webhooks.find((h3) => h3.name === this.name) ?? await this.textChannel.createWebhook({
14494
+ this.webhook = webhooks.find((h3) => h3.name === this.name && h3.owner?.id == Bot.client.user?.id) ?? await this.textChannel.createWebhook({
14495
14495
  name: this.name,
14496
14496
  avatar: this.avatarURL,
14497
14497
  reason: "Auto-created by WebhookManager"
@@ -16089,7 +16089,7 @@ var SimpleMutex = class {
16089
16089
  // package.json
16090
16090
  var package_default = {
16091
16091
  name: "@spatulox/simplediscordbot",
16092
- version: "1.6.8",
16092
+ version: "1.7.0",
16093
16093
  author: "Spatulox",
16094
16094
  description: "Simple discord bot framework to set up a bot under 30 secondes",
16095
16095
  exports: {
@@ -16111,12 +16111,15 @@ var package_default = {
16111
16111
  },
16112
16112
  license: "MIT",
16113
16113
  dependencies: {
16114
- "@spatulox/discord-interaction-manager": "^2.0.6",
16114
+ "@spatulox/discord-interaction-manager": "^2.0.6"
16115
+ },
16116
+ peerDependencies: {
16115
16117
  "discord.js": "^14.26.0"
16116
16118
  },
16117
16119
  devDependencies: {
16118
16120
  "@types/node": "^22.14.0",
16119
16121
  "@types/node-schedule": "^2.1.7",
16122
+ "discord.js": "^14.26.0",
16120
16123
  dotenv: "^17.2.4",
16121
16124
  tsup: "^8.5.1",
16122
16125
  tsx: "^4.20.3",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spatulox/simplediscordbot",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "author": "Spatulox",
5
5
  "description": "Simple discord bot framework to set up a bot under 30 secondes",
6
6
  "exports": {
@@ -22,12 +22,15 @@
22
22
  },
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@spatulox/discord-interaction-manager": "^2.0.6",
25
+ "@spatulox/discord-interaction-manager": "^2.0.6"
26
+ },
27
+ "peerDependencies": {
26
28
  "discord.js": "^14.26.0"
27
29
  },
28
30
  "devDependencies": {
29
31
  "@types/node": "^22.14.0",
30
32
  "@types/node-schedule": "^2.1.7",
33
+ "discord.js": "^14.26.0",
31
34
  "dotenv": "^17.2.4",
32
35
  "tsup": "^8.5.1",
33
36
  "tsx": "^4.20.3",