@satorijs/adapter-discord 3.5.6 → 3.5.7
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.js +2 -0
- package/lib/index.js.map +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1593,6 +1593,7 @@ __name(WsClient, "WsClient");
|
|
|
1593
1593
|
})(WsClient || (WsClient = {}));
|
|
1594
1594
|
|
|
1595
1595
|
// satori/adapters/discord/src/bot.ts
|
|
1596
|
+
var import_package = require("../package.json");
|
|
1596
1597
|
var DiscordBot = class extends import_satori5.Bot {
|
|
1597
1598
|
constructor(ctx, config) {
|
|
1598
1599
|
super(ctx, config);
|
|
@@ -1600,6 +1601,7 @@ var DiscordBot = class extends import_satori5.Bot {
|
|
|
1600
1601
|
...config,
|
|
1601
1602
|
headers: {
|
|
1602
1603
|
Authorization: `Bot ${config.token}`,
|
|
1604
|
+
"User-Agent": `Koishi (https://koishi.chat/, ${import_package.version})`,
|
|
1603
1605
|
...config.headers
|
|
1604
1606
|
}
|
|
1605
1607
|
});
|