mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 00:30:17 +08:00
Keep permissionName intact
This commit is contained in:
parent
7cb6ee1e18
commit
e31174a2b7
@ -155,7 +155,7 @@ public interface PermissionService<P : Permission> {
|
|||||||
reason: PluginPermissionIdRequestType
|
reason: PluginPermissionIdRequestType
|
||||||
) = PermissionId(
|
) = PermissionId(
|
||||||
plugin.name.toLowerCase().replace(' ', '.'),
|
plugin.name.toLowerCase().replace(' ', '.'),
|
||||||
permissionName
|
permissionName.toLowerCase()
|
||||||
)
|
)
|
||||||
|
|
||||||
public fun PermissionId.findCorrespondingPermission(): Permission? = INSTANCE[this]
|
public fun PermissionId.findCorrespondingPermission(): Permission? = INSTANCE[this]
|
||||||
|
Loading…
Reference in New Issue
Block a user