mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: 简化代码
This commit is contained in:
parent
2f6dfe51f5
commit
ce9b09e8d1
@ -48,7 +48,7 @@ export class OneBotGroupApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const element of msg.elements) {
|
for (const element of msg.elements) {
|
||||||
if (element.grayTipElement && element.grayTipElement.groupElement) {
|
if (element.grayTipElement?.groupElement) {
|
||||||
const groupElement = element.grayTipElement.groupElement;
|
const groupElement = element.grayTipElement.groupElement;
|
||||||
if (groupElement.type == TipGroupElementType.memberIncrease) {
|
if (groupElement.type == TipGroupElementType.memberIncrease) {
|
||||||
const MemberIncreaseEvent = await this.obContext.apis.GroupApi.parseGroupMemberIncreaseEvent(msg.peerUid, element.grayTipElement);
|
const MemberIncreaseEvent = await this.obContext.apis.GroupApi.parseGroupMemberIncreaseEvent(msg.peerUid, element.grayTipElement);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user