update

@ExperimentalSimbotAPI
inline suspend fun <R : KookGuildRole> R.update(block: KookGuildRoleUpdater.() -> Unit): R(source)

使用 Kotlin DSL 更新当前服务器角色信息。

val updated = role.update { // suspend
name = "老生"
isHoist = true
color = 123
// other ...
}

Return

receiver 自身

See also