File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ bot开发配置中的 `Token`。
174
174
175
175
根据 ` type ` 的不同可选的属性不同。
176
176
177
+ > 有关 ` intents ` 的更多信息可参考 [ 官方文档] ( https://bot.q.qq.com/wiki/develop/api-v2/dev-prepare/interface-framework/event-emit.html#事件订阅Intents )
178
+
177
179
<deflist >
178
180
<def title =" type='raw' " >
179
181
@@ -195,10 +197,13 @@ bot开发配置中的 `Token`。
195
197
名称基于继承了 ` EventIntents ` 的 object 的简单名称,例如 ` Guilds ` 。
196
198
197
199
名称支持开头大写或小写的驼峰,例如 ` Guilds ` , ` guilds ` ,
198
- 或者全大写或全小写的snack (下划线)格式,例如 ` PUBLIC_GUILD_MESSAGES ` , ` public_guild_messages ` 。
200
+ 或者全大写或全小写的snake (下划线)格式,例如 ` PUBLIC_GUILD_MESSAGES ` , ` public_guild_messages ` 。
199
201
200
202
虽然支持的格式比较宽松,但名称匹配仍然是** 区分大小写** 的,
201
- 比如一个混用大小写的snack格式就是不允许的:` public_GUILD_messages ` ❌。
203
+ 比如一个混用大小写的snake格式就是不允许的:` public_GUILD_messages ` ❌。
204
+
205
+ > 开头小写的驼峰以及snake格式自 ` v4.0.0-beta7 ` 开始支持,
206
+ > 在此之前仅支持开头大写的驼峰格式,例如 ` Guild ` 。
202
207
203
208
``` json
204
209
{
You can’t perform that action at this time.
0 commit comments