mirai
2.16.0
jvm
mirai-console
/
net.mamoe.mirai.console.permission
/
PermissionService
/
Companion
/
getOrFail
get
Or
Fail
@
JvmStatic
fun
<
P
:
Permission
>
PermissionService
<
P
>
.
getOrFail
(
id
:
PermissionId
)
:
P
获取一个权限, 失败时抛出
NoSuchElementException
See also
Permission
Service.
register
申请并注册一个权限