@satorijs/adapter-discord 3.0.2 → 3.0.3

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 CHANGED
@@ -339,12 +339,12 @@ __name(Sender, "Sender");
339
339
  import_satori2.Schema.const("download").description("先下载后发送"),
340
340
  import_satori2.Schema.const("direct").description("直接发送链接"),
341
341
  import_satori2.Schema.const("auto").description("发送一个 HEAD 请求,根据返回的 Content-Type 决定发送方式")
342
- ]).description("发送外链资源时采用的方式。").default("auto"),
342
+ ]).role("radio").description("发送外链资源时采用的方式。").default("auto"),
343
343
  handleMixedContent: import_satori2.Schema.union([
344
344
  import_satori2.Schema.const("separate").description("将每个不同形式的内容分开发送"),
345
345
  import_satori2.Schema.const("attach").description("图片前如果有文本内容,则将文本作为图片的附带信息进行发送"),
346
346
  import_satori2.Schema.const("auto").description("如果图片本身采用直接发送则与前面的文本分开,否则将文本作为图片的附带信息发送")
347
- ]).description("发送图文等混合内容时采用的方式。").default("auto")
347
+ ]).role("radio").description("发送图文等混合内容时采用的方式。").default("auto")
348
348
  }).description("发送设置");
349
349
  })(Sender || (Sender = {}));
350
350
 
@@ -1377,7 +1377,7 @@ __name(WsClient, "WsClient");
1377
1377
  ((WsClient2) => {
1378
1378
  WsClient2.Config = import_satori3.Schema.intersect([
1379
1379
  import_satori3.Schema.object({
1380
- gateway: import_satori3.Schema.string().role("url").default("wss://gateway.discord.gg/?v=8&encoding=json").description("要连接的 WebSocket 网关。"),
1380
+ gateway: import_satori3.Schema.string().default("wss://gateway.discord.gg/?v=8&encoding=json").description("要连接的 WebSocket 网关。"),
1381
1381
  intents: import_satori3.Schema.bitset(GatewayIntent).description("需要订阅的机器人事件。").default(0 | 512 /* GUILD_MESSAGES */ | 1024 /* GUILD_MESSAGE_REACTIONS */ | 4096 /* DIRECT_MESSAGES */ | 8192 /* DIRECT_MESSAGE_REACTIONS */)
1382
1382
  }).description("推送设置"),
1383
1383
  import_satori3.Adapter.WsClient.Config
@@ -1514,12 +1514,7 @@ __name(DiscordBot, "DiscordBot");
1514
1514
  }),
1515
1515
  WsClient.Config,
1516
1516
  Sender.Config,
1517
- import_satori4.Schema.object({
1518
- endpoint: import_satori4.Schema.string().role("url").description("要连接的服务器地址。").default("https://discord.com/api/v8"),
1519
- proxyAgent: import_satori4.Schema.string().role("url").description("使用的代理服务器地址。"),
1520
- headers: import_satori4.Schema.dict(String).description("要附加的额外请求头。"),
1521
- timeout: import_satori4.Schema.natural().role("ms").description("等待连接建立的最长时间。")
1522
- }).description("请求设置")
1517
+ import_satori4.Quester.createConfig("https://discord.com/api/v8")
1523
1518
  ]);
1524
1519
  })(DiscordBot || (DiscordBot = {}));
1525
1520
  DiscordBot.prototype.platform = "discord";