Introduce the proposal of implementing Map<UInt, Member> for Group

This commit is contained in:
Him188 2019-12-04 20:38:33 +08:00
parent 8b96c072fa
commit 9db853e672

View File

@ -16,7 +16,7 @@ import net.mamoe.mirai.utils.internal.coerceAtLeastOrFail
* - Group ID([Group.internalId]) 是与调用 API 时使用的 id.( QQ 客户端中不可见) * - Group ID([Group.internalId]) 是与调用 API 时使用的 id.( QQ 客户端中不可见)
* @author Him188moe * @author Him188moe
*/ */
interface Group : Contact, Iterable<Member> { interface Group : Contact, Iterable<Member>/*, Map<UInt, Member>*/ { // TODO: 2019/12/4 在 inline 稳定后实现 Map<UInt, Member>. 目前这样做会导致问题
/** /**
* 内部 ID. 内部 ID [GroupId] 的映射 * 内部 ID. 内部 ID [GroupId] 的映射
*/ */