🐛 Fix Mirai group join event approve failed, fix #400

This commit is contained in:
Mix 2021-06-11 20:20:14 +08:00 committed by GitHub
parent c9d80255ae
commit 136c9a2687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,8 @@ class MemberJoinRequestEvent(RequestEvent):
'eventId': self.event_id,
'groupId': self.group_id,
'fromId': self.from_id,
'operate': 0
'operate': 0,
'message': ''
})
async def reject(self,
@ -147,7 +148,8 @@ class BotInvitedJoinGroupRequestEvent(RequestEvent):
'eventId': self.event_id,
'groupId': self.group_id,
'fromId': self.from_id,
'operate': 0
'operate': 0,
'message': ''
})
async def reject(self, bot: "Bot", message: str = ""):