mirai
2.16.0
jvm
mirai-console
/
net.mamoe.mirai.console.permission
/
PermissionService
/
allocatePermissionIdForPlugin
allocate
Permission
Id
For
Plugin
@
ConsoleExperimentalApi
open
fun
allocatePermissionIdForPlugin
(
plugin
:
Plugin
,
permissionName
:
String
)
:
PermissionId
为
Plugin
分配一个
PermissionId