mirror of
https://github.com/mamoe/mirai.git
synced 2026-08-22 14:13:32 +08:00
[core] Improve docs on queryProfile, close #2460
This commit is contained in:
@@ -198,6 +198,8 @@ public interface IMirai : LowLevelApiAccessor {
|
|||||||
/**
|
/**
|
||||||
* 查询某个用户的信息
|
* 查询某个用户的信息
|
||||||
*
|
*
|
||||||
|
* 此函数不会缓存信息. 每次调用此函数都会向服务器查询新信息.
|
||||||
|
*
|
||||||
* @since 2.1
|
* @since 2.1
|
||||||
*/
|
*/
|
||||||
public suspend fun queryProfile(bot: Bot, targetId: Long): UserProfile
|
public suspend fun queryProfile(bot: Bot, targetId: Long): UserProfile
|
||||||
|
|||||||
@@ -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 许可证的约束, 可以在以下链接找到该许可证.
|
* 此源代码的使用受 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.
|
* 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
|
public override fun nudge(): UserNudge
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询用户信息
|
* 查询用户信息.
|
||||||
|
*
|
||||||
|
* 此函数不会缓存信息. 每次调用此函数都会向服务器查询新信息.
|
||||||
*
|
*
|
||||||
* @since 2.1
|
* @since 2.1
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user