Commit 1ff5df1d authored by Him188's avatar Him188

Add avatarUrl, close #102

parent b162459e
...@@ -117,6 +117,10 @@ interface Group : Contact, CoroutineScope { ...@@ -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 { ...@@ -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"
/** /**
* 查询曾用名. * 查询曾用名.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment