Skip to content

Commit 26a3ddd

Browse files
committed
[core] Improve docs on queryProfile, close #2460
1 parent 5cad8aa commit 26a3ddd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

mirai-core-api/src/commonMain/kotlin/IMirai.kt

+2
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ public interface IMirai : LowLevelApiAccessor {
198198
/**
199199
* 查询某个用户的信息
200200
*
201+
* 此函数不会缓存信息. 每次调用此函数都会向服务器查询新信息.
202+
*
201203
* @since 2.1
202204
*/
203205
public suspend fun queryProfile(bot: Bot, targetId: Long): UserProfile

mirai-core-api/src/commonMain/kotlin/contact/User.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 Mamoe Technologies and contributors.
2+
* Copyright 2019-2022 Mamoe Technologies and contributors.
33
*
44
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
55
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
@@ -87,7 +87,9 @@ public interface User : Contact, UserOrBot, CoroutineScope {
8787
public override fun nudge(): UserNudge
8888

8989
/**
90-
* 查询用户信息
90+
* 查询用户信息.
91+
*
92+
* 此函数不会缓存信息. 每次调用此函数都会向服务器查询新信息.
9193
*
9294
* @since 2.1
9395
*/

0 commit comments

Comments
 (0)