Simple Robot 组件 | KOOK
Toggle table of contents
4.1.1
common
Platform filter
common
Switch theme
Search in API
Simple Robot 组件 | KOOK
simbot-component-kook-core
/
love.forte.simbot.component.kook.role
/
createRole
create
Role
@
ExperimentalSimbotAPI
inline suspend
fun
KookRoleOperator
.
createRole
(
block
:
KookGuildRoleCreator
.
(
)
->
Unit
)
:
KookGuildRole
(
source
)
使用 DSL 风格API创建一个
KookGuildRole
.
val newRole = operator.createRole {
name = "武旦"
}
Content copied to clipboard
See also
Kook
Role
Operator.
role
Creator