mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-13 20:02:57 +08:00
Remove @ExperimentalTime
on BotConfiguration
This commit is contained in:
parent
46865721b0
commit
9d3c7315cb
@ -28,7 +28,6 @@ import kotlin.coroutines.EmptyCoroutineContext
|
|||||||
import kotlin.coroutines.coroutineContext
|
import kotlin.coroutines.coroutineContext
|
||||||
import kotlin.time.Duration
|
import kotlin.time.Duration
|
||||||
import kotlin.time.Duration.Companion.milliseconds
|
import kotlin.time.Duration.Companion.milliseconds
|
||||||
import kotlin.time.ExperimentalTime
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* [Bot] 配置. 用于 [BotFactory.newBot]
|
* [Bot] 配置. 用于 [BotFactory.newBot]
|
||||||
@ -504,8 +503,7 @@ public open class BotConfiguration { // open for Java
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 在有修改时自动保存间隔. 默认 60 秒. 在每次登录完成后有修改时都会立即保存一次.
|
* 在有修改时自动保存间隔. 默认 60 秒. 在每次登录完成后有修改时都会立即保存一次.
|
||||||
*/
|
*/ // was @ExperimentalTime before 2.9
|
||||||
@ExperimentalTime
|
|
||||||
public inline var saveInterval: Duration
|
public inline var saveInterval: Duration
|
||||||
@JvmSynthetic inline get() = saveIntervalMillis.milliseconds
|
@JvmSynthetic inline get() = saveIntervalMillis.milliseconds
|
||||||
@JvmSynthetic inline set(v) {
|
@JvmSynthetic inline set(v) {
|
||||||
|
Loading…
Reference in New Issue
Block a user