fix: 简化代码
This commit is contained in:
1 parent
ad7595f81c
commit
cdb01e5e13
1 file changed
+1
-1
@@ -48,7 +48,7 @@ export class OneBotGroupApi {
|
||||
}
|
||||
|
||||
for (const element of msg.elements) {
|
||||
if (element.grayTipElement && element.grayTipElement.groupElement) {
|
||||
if (element.grayTipElement?.groupElement) {
|
||||
const groupElement = element.grayTipElement.groupElement;
|
||||
if (groupElement.type == TipGroupElementType.memberIncrease) {
|
||||
const MemberIncreaseEvent = await this.obContext.apis.GroupApi.parseGroupMemberIncreaseEvent(msg.peerUid, element.grayTipElement);
|
||||
|
||||
Reference in new issue
Block a user