mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 02:20:14 +08:00
Merge pull request #233 from sandtechnology/patch-1
Fix wrong error message
This commit is contained in:
commit
65b6c2f0b9
@ -115,7 +115,7 @@ abstract class Bot : CoroutineScope, LowLevelBotAPIAccessor, BotJavaFriendlyAPI(
|
|||||||
* 获取一个好友对象.
|
* 获取一个好友对象.
|
||||||
* @throws [NoSuchElementException] 当不存在这个好友时抛出
|
* @throws [NoSuchElementException] 当不存在这个好友时抛出
|
||||||
*/
|
*/
|
||||||
fun getFriend(id: Long): QQ = friends.firstOrNull { it.id == id } ?: throw NoSuchElementException("group $id")
|
fun getFriend(id: Long): QQ = friends.firstOrNull { it.id == id } ?: throw NoSuchElementException("friend $id")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 机器人加入的群列表. 与服务器同步更新
|
* 机器人加入的群列表. 与服务器同步更新
|
||||||
|
Loading…
Reference in New Issue
Block a user