def deserialize_guild_member_add_event( self, shard: gateway_shard.GatewayShard, payload: data_binding.JSONObject ) -> member_events.MemberCreateEvent: member = self._app.entity_factory.deserialize_member(payload) return member_events.MemberCreateEvent(app=self._app, shard=shard, member=member)
def event(self): return member_events.MemberCreateEvent(app=None, shard=None, member=mock.Mock())