[core] Improve docs on queryProfile, close #2460

This commit is contained in:
Him188 2023-02-19 11:46:35 +00:00
parent 5cad8aad8d
commit 26a3ddd505
No known key found for this signature in database
GPG Key ID: BA439CDDCF652375
2 changed files with 6 additions and 2 deletions

View File

@ -198,6 +198,8 @@ public interface IMirai : LowLevelApiAccessor {
/**
* 查询某个用户的信息
*
* 此函数不会缓存信息. 每次调用此函数都会向服务器查询新信息.
*
* @since 2.1
*/
public suspend fun queryProfile(bot: Bot, targetId: Long): UserProfile

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019-2021 Mamoe Technologies and contributors.
* Copyright 2019-2022 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* 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 {
public override fun nudge(): UserNudge
/**
* 查询用户信息
* 查询用户信息.
*
* 此函数不会缓存信息. 每次调用此函数都会向服务器查询新信息.
*
* @since 2.1
*/