mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 14:50:43 +08:00
Add avatarUrl, close #102
This commit is contained in:
parent
b162459e3e
commit
1ff5df1d30
@ -117,6 +117,10 @@ interface Group : Contact, CoroutineScope {
|
|||||||
*/
|
*/
|
||||||
val botPermission: MemberPermission
|
val botPermission: MemberPermission
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 群头像下载链接.
|
||||||
|
*/
|
||||||
|
val avatarUrl: String get() = "https://p.qlogo.cn/gh/$id/${id}_1/640"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 群成员列表, 不含机器人自己, 含群主.
|
* 群成员列表, 不含机器人自己, 含群主.
|
||||||
|
@ -58,6 +58,11 @@ interface QQ : Contact, CoroutineScope {
|
|||||||
@MiraiExperimentalAPI("还未支持")
|
@MiraiExperimentalAPI("还未支持")
|
||||||
suspend fun queryProfile(): Profile
|
suspend fun queryProfile(): Profile
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 头像下载链接
|
||||||
|
*/
|
||||||
|
val avatarUrl: String get() = "http://q1.qlogo.cn/g?b=qq&nk=$id&s=640"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询曾用名.
|
* 查询曾用名.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user