🐛 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

View File

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