Simple Robot 组件 | KOOK
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
Simple Robot 组件 | KOOK
simbot-component-kook-api
/
love.forte.simbot.kook.api.thread
/
Category
Category
@
Serializable
data
class
Category
@
ApiResultType
constructor
(
val
id
:
String
,
val
name
:
String
,
val
allow
:
Int
=
0
,
val
deny
:
Int
=
0
,
val
roles
:
List
<
CategoryRole
>
=
emptyList()
)
(
source
)
帖子分区详情。
Since
4.3.0
Author
Forte
Members
Constructors
Category
Link copied to clipboard
@
ApiResultType
constructor
(
id
:
String
,
name
:
String
,
allow
:
Int
=
0
,
deny
:
Int
=
0
,
roles
:
List
<
CategoryRole
>
=
emptyList()
)
Properties
allow
Link copied to clipboard
val
allow
:
Int
=
0
默认为 0,想要设置的允许的权限值
deny
Link copied to clipboard
val
deny
:
Int
=
0
默认为 0,想要设置的拒绝的权限值
id
Link copied to clipboard
val
id
:
String
帖子分区ID
name
Link copied to clipboard
val
name
:
String
分区名
roles
Link copied to clipboard
val
roles
:
List
<
CategoryRole
>
角色或者用户在该分区下的权限值