mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 01:30:17 +08:00
Make uin not final
This commit is contained in:
parent
b8b1f4cc2a
commit
008b6e935d
@ -13,6 +13,7 @@ import kotlin.coroutines.CoroutineContext
|
||||
/*
|
||||
* 泛型 N 不需要向外(接口)暴露.
|
||||
*/
|
||||
@UseExperimental(MiraiExperimentalAPI::class)
|
||||
@MiraiInternalAPI
|
||||
abstract class BotImpl<N : BotNetworkHandler> constructor(
|
||||
account: BotAccount,
|
||||
@ -25,8 +26,7 @@ abstract class BotImpl<N : BotNetworkHandler> constructor(
|
||||
|
||||
@Suppress("CanBePrimaryConstructorProperty") // for logger
|
||||
final override val account: BotAccount = account
|
||||
@UseExperimental(MiraiExperimentalAPI::class)
|
||||
final override val uin: Long
|
||||
override val uin: Long
|
||||
get() = account.id
|
||||
final override val logger: MiraiLogger = configuration.logger ?: DefaultLogger("Bot($uin)").also { configuration.logger = it }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user