mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-07 16:40:43 +08:00
Remove Group.newAnonymousMember
This commit is contained in:
parent
089d0eed8c
commit
d6b4bb9fb5
@ -319,14 +319,6 @@ internal fun Group.newNormalMember(memberInfo: MemberInfo): NormalMemberImpl {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun Group.newAnonymousMember(memberInfo: MemberInfo): AnonymousMemberImpl? {
|
|
||||||
this.checkIsGroupImpl()
|
|
||||||
memberInfo.anonymousId?.let {
|
|
||||||
return AnonymousMemberImpl(this, this.coroutineContext, memberInfo)
|
|
||||||
}
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
internal fun GroupImpl.newAnonymous(name: String, id: String): AnonymousMemberImpl {
|
internal fun GroupImpl.newAnonymous(name: String, id: String): AnonymousMemberImpl {
|
||||||
return AnonymousMemberImpl(
|
return AnonymousMemberImpl(
|
||||||
this, this.coroutineContext,
|
this, this.coroutineContext,
|
||||||
|
Loading…
Reference in New Issue
Block a user