Skip to content

Commit

Permalink
fix: set parent perm of the trusted-user perm
Browse files Browse the repository at this point in the history
  • Loading branch information
Samarium150 committed Aug 31, 2022
1 parent 8dd0256 commit b23d8e4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group = "io.github.samarium150"
version = "6.0.2"
version = "6.0.3"

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/MiraiConsoleLolicon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import java.net.Proxy
object MiraiConsoleLolicon : KotlinPlugin(
JvmPluginDescription(
id = "io.github.samarium150.mirai.plugin.mirai-console-lolicon",
version = "6.0.2",
version = "6.0.3",
name = "Lolicon"
) {
author("Samarium150")
Expand Down
9 changes: 7 additions & 2 deletions src/main/kotlin/command/Lolicon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,16 @@ import java.io.InputStream
object Lolicon : CompositeCommand(
MiraiConsoleLolicon,
primaryName = "lolicon",
secondaryNames = CommandConfig.lolicon
secondaryNames = CommandConfig.lolicon,
description = "Lolicon发图命令"
) {

val trusted: Permission by lazy {
PermissionService.INSTANCE.register(MiraiConsoleLolicon.permissionId("trusted"), "受信任权限")
PermissionService.INSTANCE.register(
MiraiConsoleLolicon.permissionId("trusted"),
"受信任权限",
MiraiConsoleLolicon.parentPermission
)
}

@ExperimentalCommandDescriptors
Expand Down

0 comments on commit b23d8e4

Please sign in to comment.