Add ContactOrBot.bot

This commit is contained in:
Him188 2020-12-23 19:30:15 +08:00
parent d12a3728ea
commit 85853b88c1
3 changed files with 11 additions and 1 deletions

View File

@ -54,6 +54,11 @@ public interface Bot : CoroutineScope, ContactOrBot, UserOrBot {
*/
public override val id: Long
/**
* 返回 `this`
*/
public override val bot: Bot get() = this
/**
* 昵称
*/

View File

@ -32,7 +32,7 @@ public interface Contact : ContactOrBot, CoroutineScope {
* 这个联系对象所属 [Bot].
*/
@WeakRefProperty
public val bot: Bot
public override val bot: Bot
/**
* 可以是 QQ 号码或者群号码.

View File

@ -27,6 +27,11 @@ public interface ContactOrBot : CoroutineScope {
*/
public val id: Long
/**
* 相关 [Bot]
*/
public val bot: Bot
/**
* 头像下载链接
*/