mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 23:50:08 +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 {
|
||||
return AnonymousMemberImpl(
|
||||
this, this.coroutineContext,
|
||||
|
Loading…
Reference in New Issue
Block a user