Skip to content

Commit b23d8e4

Browse files
committed
fix: set parent perm of the trusted-user perm
1 parent 8dd0256 commit b23d8e4

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins {
1010
}
1111

1212
group = "io.github.samarium150"
13-
version = "6.0.2"
13+
version = "6.0.3"
1414

1515
repositories {
1616
mavenCentral()

src/main/kotlin/MiraiConsoleLolicon.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import java.net.Proxy
3535
object MiraiConsoleLolicon : KotlinPlugin(
3636
JvmPluginDescription(
3737
id = "io.github.samarium150.mirai.plugin.mirai-console-lolicon",
38-
version = "6.0.2",
38+
version = "6.0.3",
3939
name = "Lolicon"
4040
) {
4141
author("Samarium150")

src/main/kotlin/command/Lolicon.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,16 @@ import java.io.InputStream
5151
object Lolicon : CompositeCommand(
5252
MiraiConsoleLolicon,
5353
primaryName = "lolicon",
54-
secondaryNames = CommandConfig.lolicon
54+
secondaryNames = CommandConfig.lolicon,
55+
description = "Lolicon发图命令"
5556
) {
5657

5758
val trusted: Permission by lazy {
58-
PermissionService.INSTANCE.register(MiraiConsoleLolicon.permissionId("trusted"), "受信任权限")
59+
PermissionService.INSTANCE.register(
60+
MiraiConsoleLolicon.permissionId("trusted"),
61+
"受信任权限",
62+
MiraiConsoleLolicon.parentPermission
63+
)
5964
}
6065

6166
@ExperimentalCommandDescriptors

0 commit comments

Comments
 (0)