Skip to content

Commit a722f33

Browse files
committed
fix: correct ImageData according to the API update
Closes #86
1 parent 3df1bd7 commit a722f33

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
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.6"
13+
version = "6.0.7"
1414

1515
repositories {
1616
mavenCentral()

src/main/kotlin/MiraiConsoleLolicon.kt

Lines changed: 2 additions & 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.6",
38+
version = "6.0.7",
3939
name = "Lolicon"
4040
) {
4141
author("Samarium150")
@@ -65,6 +65,7 @@ object MiraiConsoleLolicon : KotlinPlugin(
6565
json(Json {
6666
prettyPrint = true
6767
isLenient = true
68+
ignoreUnknownKeys = true
6869
})
6970
}
7071
install(HttpTimeout) {

src/main/kotlin/data/ImageData.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ data class ImageData(
3232
val height: Int,
3333
val tags: List<String>,
3434
val ext: String,
35+
val aiType: Int,
3536
val uploadDate: Long,
3637
val urls: Map<String, String>
3738
) {

0 commit comments

Comments
 (0)