mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-14 07:10:09 +08:00
Add ContactOrBot.avatarUrl
This commit is contained in:
parent
cce37faae9
commit
f691a8f3e0
@ -26,4 +26,11 @@ public interface ContactOrBot : CoroutineScope {
|
||||
* QQ 号或群号.
|
||||
*/
|
||||
public val id: Long
|
||||
|
||||
/**
|
||||
* 头像下载链接
|
||||
*/
|
||||
public val avatarUrl: String
|
||||
get() = "http://q1.qlogo.cn/g?b=qq&nk=$id&s=640"
|
||||
|
||||
}
|
@ -52,12 +52,6 @@ public interface Friend : User, CoroutineScope {
|
||||
*/
|
||||
public override val remark: String
|
||||
|
||||
/**
|
||||
* 头像下载链接
|
||||
*/
|
||||
public override val avatarUrl: String
|
||||
get() = "http://q1.qlogo.cn/g?b=qq&nk=$id&s=640"
|
||||
|
||||
/**
|
||||
* 向这个对象发送消息.
|
||||
*
|
||||
|
@ -59,12 +59,6 @@ public interface User : Contact, UserOrBot, CoroutineScope {
|
||||
*/
|
||||
public val remark: String
|
||||
|
||||
/**
|
||||
* 头像下载链接
|
||||
*/
|
||||
public val avatarUrl: String
|
||||
get() = "http://q1.qlogo.cn/g?b=qq&nk=$id&s=640"
|
||||
|
||||
/**
|
||||
* 向这个对象发送消息.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user