mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-22 13:46:13 +08:00
Add ContactOrBot.bot
This commit is contained in:
parent
d12a3728ea
commit
85853b88c1
@ -54,6 +54,11 @@ public interface Bot : CoroutineScope, ContactOrBot, UserOrBot {
|
|||||||
*/
|
*/
|
||||||
public override val id: Long
|
public override val id: Long
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 返回 `this`
|
||||||
|
*/
|
||||||
|
public override val bot: Bot get() = this
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 昵称
|
* 昵称
|
||||||
*/
|
*/
|
||||||
|
@ -32,7 +32,7 @@ public interface Contact : ContactOrBot, CoroutineScope {
|
|||||||
* 这个联系对象所属 [Bot].
|
* 这个联系对象所属 [Bot].
|
||||||
*/
|
*/
|
||||||
@WeakRefProperty
|
@WeakRefProperty
|
||||||
public val bot: Bot
|
public override val bot: Bot
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 可以是 QQ 号码或者群号码.
|
* 可以是 QQ 号码或者群号码.
|
||||||
|
@ -27,6 +27,11 @@ public interface ContactOrBot : CoroutineScope {
|
|||||||
*/
|
*/
|
||||||
public val id: Long
|
public val id: Long
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 相关 [Bot]
|
||||||
|
*/
|
||||||
|
public val bot: Bot
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 头像下载链接
|
* 头像下载链接
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user