Skip to content

Commit bf703e1

Browse files
committed
增加intents配置的说明
1 parent 1401edf commit bf703e1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Writerside/topics/component-qq-guild-bot-config.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ bot开发配置中的 `Token`。
174174

175175
根据 `type` 的不同可选的属性不同。
176176

177+
> 有关 `intents` 的更多信息可参考 [官方文档](https://bot.q.qq.com/wiki/develop/api-v2/dev-prepare/interface-framework/event-emit.html#事件订阅Intents)
178+
177179
<deflist>
178180
<def title="type='raw'">
179181

@@ -195,10 +197,13 @@ bot开发配置中的 `Token`。
195197
名称基于继承了 `EventIntents` 的 object 的简单名称,例如 `Guilds`
196198

197199
名称支持开头大写或小写的驼峰,例如 `Guilds`, `guilds`,
198-
或者全大写或全小写的snack(下划线)格式,例如 `PUBLIC_GUILD_MESSAGES`, `public_guild_messages`
200+
或者全大写或全小写的snake(下划线)格式,例如 `PUBLIC_GUILD_MESSAGES`, `public_guild_messages`
199201

200202
虽然支持的格式比较宽松,但名称匹配仍然是**区分大小写**的,
201-
比如一个混用大小写的snack格式就是不允许的:`public_GUILD_messages` ❌。
203+
比如一个混用大小写的snake格式就是不允许的:`public_GUILD_messages` ❌。
204+
205+
> 开头小写的驼峰以及snake格式自 `v4.0.0-beta7` 开始支持,
206+
> 在此之前仅支持开头大写的驼峰格式,例如 `Guild`
202207
203208
```json
204209
{

0 commit comments

Comments
 (0)