@satorijs/adapter-discord 4.5.9 → 4.5.10

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/lib/index.cjs CHANGED
@@ -2138,7 +2138,7 @@ var DiscordBot = class extends import_core5.Bot {
2138
2138
  }
2139
2139
  });
2140
2140
  this.internal = new Internal(this);
2141
- this.proxyUrls.push("https://cdn.discordapp.com/");
2141
+ ctx.satori.proxyUrls.add("https://cdn.discordapp.com/");
2142
2142
  ctx.plugin(WsClient, this);
2143
2143
  }
2144
2144
  async _ensureWebhook(channelId) {
@@ -2328,4 +2328,3 @@ var src_default = DiscordBot;
2328
2328
  DiscordMessageEncoder,
2329
2329
  WsClient
2330
2330
  });
2331
- //# sourceMappingURL=index.cjs.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@satorijs/adapter-discord",
3
3
  "description": "Discord Adapter for Satorijs",
4
- "version": "4.5.9",
4
+ "version": "4.5.10",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",
7
7
  "typings": "lib/index.d.ts",
@@ -33,10 +33,10 @@
33
33
  "chat"
34
34
  ],
35
35
  "devDependencies": {
36
- "@satorijs/core": "^4.2.6",
36
+ "@satorijs/core": "^4.3.3",
37
37
  "cordis": "^3.18.1"
38
38
  },
39
39
  "peerDependencies": {
40
- "@satorijs/core": "^4.2.6"
40
+ "@satorijs/core": "^4.3.3"
41
41
  }
42
42
  }
package/src/bot.ts CHANGED
@@ -28,7 +28,7 @@ export class DiscordBot<C extends Context = Context> extends Bot<C, DiscordBot.C
28
28
  },
29
29
  })
30
30
  this.internal = new Internal(this)
31
- this.proxyUrls.push('https://cdn.discordapp.com/')
31
+ ctx.satori.proxyUrls.add('https://cdn.discordapp.com/')
32
32
  ctx.plugin(WsClient, this)
33
33
  }
34
34