Add avatarUrl, close #102

This commit is contained in:
Him188 2020-02-28 15:28:03 +08:00
parent b162459e3e
commit 1ff5df1d30
2 changed files with 9 additions and 0 deletions

View File

@ -117,6 +117,10 @@ interface Group : Contact, CoroutineScope {
*/
val botPermission: MemberPermission
/**
* 群头像下载链接.
*/
val avatarUrl: String get() = "https://p.qlogo.cn/gh/$id/${id}_1/640"
/**
* 群成员列表, 不含机器人自己, 含群主.

View File

@ -58,6 +58,11 @@ interface QQ : Contact, CoroutineScope {
@MiraiExperimentalAPI("还未支持")
suspend fun queryProfile(): Profile
/**
* 头像下载链接
*/
val avatarUrl: String get() = "http://q1.qlogo.cn/g?b=qq&nk=$id&s=640"
/**
* 查询曾用名.
*